com.jurismarches.vradi.services.dto
Class VradiThesaurusDTO

java.lang.Object
  extended by com.jurismarches.vradi.services.dto.VradiThesaurusDTO
All Implemented Interfaces:
VradiDTO<org.sharengo.wikitty.TreeNode>

public class VradiThesaurusDTO
extends Object
implements VradiDTO<org.sharengo.wikitty.TreeNode>

User: sletellier Date: 30 dec. 2009 Time: 12:23:27


Field Summary
protected  org.sharengo.wikitty.TreeNode bean
           
protected  Map<String,VradiThesaurusDTO> children
           
protected  String comment
           
static String COMMENT_FIELD
           
static String EXT_THESAURUS
           
protected  int formsForThesaurus
           
static String FQ_COMMENT_FIELD
           
static String FQ_TAGS_FIELD
           
protected  String name
           
protected  VradiThesaurusDTO parentThesaurus
           
protected  PropertyChangeSupport propertyChange
           
protected  List<String> tags
           
static String TAGS_FIELD
           
protected  String tagsAsString
           
protected static Comparator<VradiThesaurusDTO> THESAURUS_COMPARATOR
           
protected  boolean toCreate
           
protected  boolean toDelete
           
protected  boolean toSave
           
static String VERSION_THESAURUS
           
protected  String wikittyId
           
 
Constructor Summary
VradiThesaurusDTO()
           
 
Method Summary
 void addChild(VradiThesaurusDTO element)
           
 boolean addChildRecursif(VradiThesaurusDTO child)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
          Ajoute un listener gloable
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Ajoute un listener sur la propriété propertyName
protected  void addTag(String tag)
           
 void clearChildren()
           
 VradiThesaurusDTO clone()
           
protected  VradiThesaurusDTO clone(VradiThesaurusDTO parent)
           
 int decFormsForThesaurus()
           
 VradiThesaurusDTO findThesaurus(String id)
           
 void fromWikitty(org.sharengo.wikitty.TreeNode wikitty)
          Remplit le bean à partir d'un wikitty.
 org.sharengo.wikitty.TreeNode getBean()
           
 String getBuildPath(String pathSeparator)
           
 List<VradiThesaurusDTO> getChildren()
           
 List<String> getChildrenRecursif()
           
 String getComment()
           
 int getFormsForThesaurus()
           
 String getName()
           
 String getNamePath(String pathSeparator)
           
 String getParentPath(String pathSeparator)
           
 VradiThesaurusDTO getParentThesaurus()
           
 String getPath(String pathSeparator)
           
 String getPath(String defName, String pathSeparator)
           
 String getRecursifName()
           
protected  String getRecursifName(String name)
           
protected  List<String> getTags()
           
 String getTagsAsString()
           
static org.sharengo.wikitty.WikittyExtension getThesaurusExtension()
           
 String getWikittyId()
           
 int incFormsForThesaurus()
           
 boolean isChildOf(String parentId)
           
 boolean isRoot()
           
 boolean isToCreate()
           
 boolean isToDelete()
           
 boolean isToSave()
           
 void removeChild(VradiThesaurusDTO child)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
          Supprime un listener globable.
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Supprime un listener sur la propriété propertyName
 boolean removeThesaurusRecursivly(VradiThesaurusDTO toRemove)
           
 void reset()
          Vide le dto
 void revertFromWikitty()
           
protected  void setBean(org.sharengo.wikitty.TreeNode bean)
           
 void setComment(String comment)
           
protected  void setFormsForThesaurus(int formsForThesaurus)
           
 void setName(String name)
           
 void setParentThesaurus(VradiThesaurusDTO parentThesaurus)
           
protected  void setTags(List<String> tags)
           
 void setTagsAsString(String values)
           
 void setToCreate(boolean toCreate)
           
 void setToDelete(boolean toDelete)
           
 void setToSave(boolean toSave)
           
 void setWikittyId(String wikittyId)
           
 void toWikitty(org.sharengo.wikitty.TreeNode wikitty)
          Remplit le wikitty à partir du bean.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChange

protected PropertyChangeSupport propertyChange

EXT_THESAURUS

public static final String EXT_THESAURUS
See Also:
Constant Field Values

VERSION_THESAURUS

public static final String VERSION_THESAURUS
See Also:
Constant Field Values

TAGS_FIELD

public static final String TAGS_FIELD
See Also:
Constant Field Values

FQ_TAGS_FIELD

public static final String FQ_TAGS_FIELD
See Also:
Constant Field Values

COMMENT_FIELD

public static final String COMMENT_FIELD
See Also:
Constant Field Values

FQ_COMMENT_FIELD

public static final String FQ_COMMENT_FIELD
See Also:
Constant Field Values

toSave

protected boolean toSave

toCreate

protected boolean toCreate

toDelete

protected boolean toDelete

bean

protected org.sharengo.wikitty.TreeNode bean

name

protected String name

wikittyId

protected String wikittyId

formsForThesaurus

protected int formsForThesaurus

comment

protected String comment

parentThesaurus

protected VradiThesaurusDTO parentThesaurus

tagsAsString

protected String tagsAsString

tags

protected List<String> tags

children

protected Map<String,VradiThesaurusDTO> children

THESAURUS_COMPARATOR

protected static final Comparator<VradiThesaurusDTO> THESAURUS_COMPARATOR
Constructor Detail

VradiThesaurusDTO

public VradiThesaurusDTO()
Method Detail

isRoot

public boolean isRoot()

isToDelete

public boolean isToDelete()

setToDelete

public void setToDelete(boolean toDelete)

isToCreate

public boolean isToCreate()

setToCreate

public void setToCreate(boolean toCreate)

isToSave

public boolean isToSave()

setToSave

public void setToSave(boolean toSave)

setBean

protected void setBean(org.sharengo.wikitty.TreeNode bean)

getName

public String getName()

setName

public void setName(String name)

getWikittyId

public String getWikittyId()

setWikittyId

public void setWikittyId(String wikittyId)

getParentThesaurus

public VradiThesaurusDTO getParentThesaurus()

setParentThesaurus

public void setParentThesaurus(VradiThesaurusDTO parentThesaurus)

getTagsAsString

public String getTagsAsString()

setTagsAsString

public void setTagsAsString(String values)

getTags

protected List<String> getTags()

setTags

protected void setTags(List<String> tags)

addTag

protected void addTag(String tag)

getFormsForThesaurus

public int getFormsForThesaurus()

decFormsForThesaurus

public int decFormsForThesaurus()

incFormsForThesaurus

public int incFormsForThesaurus()

setFormsForThesaurus

protected void setFormsForThesaurus(int formsForThesaurus)

getComment

public String getComment()

setComment

public void setComment(String comment)

getChildren

public List<VradiThesaurusDTO> getChildren()

addChild

public void addChild(VradiThesaurusDTO element)

clearChildren

public void clearChildren()

removeChild

public void removeChild(VradiThesaurusDTO child)

getChildrenRecursif

public List<String> getChildrenRecursif()

addChildRecursif

public boolean addChildRecursif(VradiThesaurusDTO child)

removeThesaurusRecursivly

public boolean removeThesaurusRecursivly(VradiThesaurusDTO toRemove)

findThesaurus

public VradiThesaurusDTO findThesaurus(String id)

isChildOf

public boolean isChildOf(String parentId)

getRecursifName

public String getRecursifName()

getRecursifName

protected String getRecursifName(String name)

getThesaurusExtension

public static final org.sharengo.wikitty.WikittyExtension getThesaurusExtension()

getParentPath

public String getParentPath(String pathSeparator)

getNamePath

public String getNamePath(String pathSeparator)

getPath

public String getPath(String pathSeparator)

getPath

public String getPath(String defName,
                      String pathSeparator)

getBuildPath

public String getBuildPath(String pathSeparator)

clone

public VradiThesaurusDTO clone()
Overrides:
clone in class Object

clone

protected VradiThesaurusDTO clone(VradiThesaurusDTO parent)

revertFromWikitty

public void revertFromWikitty()

fromWikitty

public void fromWikitty(org.sharengo.wikitty.TreeNode wikitty)
Description copied from interface: VradiDTO
Remplit le bean à partir d'un wikitty.

Specified by:
fromWikitty in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
wikitty - le wikitty source

toWikitty

public void toWikitty(org.sharengo.wikitty.TreeNode wikitty)
Description copied from interface: VradiDTO
Remplit le wikitty à partir du bean.

Specified by:
toWikitty in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
wikitty - le wikitty a remplir

getBean

public org.sharengo.wikitty.TreeNode getBean()

reset

public void reset()
Description copied from interface: VradiDTO
Vide le dto

Specified by:
reset in interface VradiDTO<org.sharengo.wikitty.TreeNode>

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: VradiDTO
Ajoute un listener gloable

Specified by:
addPropertyChangeListener in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
listener - le listener à ajouter

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: VradiDTO
Supprime un listener globable.

Specified by:
removePropertyChangeListener in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
listener - le listener à supprimer

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Description copied from interface: VradiDTO
Ajoute un listener sur la propriété propertyName

Specified by:
addPropertyChangeListener in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
propertyName - le nom de la propriété
listener - le listener à ajouter

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Description copied from interface: VradiDTO
Supprime un listener sur la propriété propertyName

Specified by:
removePropertyChangeListener in interface VradiDTO<org.sharengo.wikitty.TreeNode>
Parameters:
propertyName - le nom de la propriété
listener - le listener à supprimer


Copyright © 2009-2010 JurisMarches. All Rights Reserved.