java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.pf.registry.Item
- All Implemented Interfaces:
Manageable
,PersistenceCapable
,Shareable
,RegistryContext
,UserFields
,XObject
,Described
,Map
,Serializable
- Direct Known Subclasses:
Application
,Argument
,AttributeItem
,AutoCompletorFactory
,CheckBoxItem
,ContentDescriptionType
,CoolbarItemAdder
,Directory
,DTDSourceFile
,Exclude
,Executable
,Expression
,FileTypeItem
,FilterItem
,FloatingWindow
,Group
,LAF
,Layout
,Library
,Link
,MainWindow
,MimeTypeItem
,MTGSourceFile
,NavigatorFactory
,ObjectItem
,OptionFileBase
,OptionGroup
,PanelFactory
,PluginDescriptor
,Prerequisite
,ProjectDirectory
,PropertyEditor
,RegistryViewEventFactory
,ResourceDirectory
,Root
,Separator
,SourceDirectory
,SourceFile
,Split
,Tab
,ToolFactory
,UIPropertyDependency
,VariableDescriptionContent
,ViewComponentFactory
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Node.NType
protected String
static final Node.NType.Field
Fields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELD, USED_BITS
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
activate()
protected void
final Item
final Item
protected static void
addPluginPrerequisite
(Collection list, Class cls) void
void
addRequiredFiles
(Collection list) final Item
addUserItem
(Item item) final Item
addUserItemWithUniqueName
(Item item, String name) final Item
addWithUniqueName
(Item item, String name, boolean human) final void
beginXA()
classForName
(String name, boolean initialize) final void
commitXA
(boolean activateItems) protected Item
createItem
(PersistenceBindings pb, String name) final void
protected void
void
delete()
final ObjectList
deriveItems
(ItemVisitor callback, Object info) protected void
dupUnmanagedFields
(Node original) boolean
equals
(ManageableType.Field field, Object o1, Object o2) Item[]
findAll
(ItemCriterion c, Object info, boolean resolve) static Item[]
findAll
(Item root, ItemCriterion c, Object info, boolean resolve) static Item[]
findAll
(RegistryContext ctx, String root, ItemCriterion c, Object info, boolean resolve) findFirst
(ItemCriterion c, Object info, boolean resolve) static Item
findFirst
(Item root, ItemCriterion c, Object info, boolean resolve) static Item
findFirst
(RegistryContext ctx, String root, ItemCriterion c, Object info, boolean resolve) findMax
(ItemComparator c, Object info, boolean resolve) static Item
findMax
(Item root, ItemComparator c, Object info, boolean resolve) static Item
findMax
(RegistryContext ctx, String root, ItemComparator c, Object info, boolean resolve) void
forAll
(ItemCriterion c, Object info, ItemVisitor cb, Object cbInfo, boolean resolve) static void
forAll
(Item root, ItemCriterion c, Object info, ItemVisitor cb, Object cbInfo, boolean resolve) static void
forAll
(RegistryContext ctx, String root, ItemCriterion c, Object info, ItemVisitor cb, Object cbInfo, boolean resolve) Returns the value associated withkey
.final String
getAccessor
(Attribute attribute) getAccessor
(String name) protected void
protected Object
getDefaultDescription
(String type) getDefaultValue
(Node.NType.Field field) protected Object
getDerivedDescription
(String type) final Object
getDescription
(String type) Returns the description associated with the giventype
.protected Object
getDescriptionImpl
(String type) getFromResource
(String key) final Item
getItem
(CharSequence key) final Object
getLock()
protected Node.NType
This method returns theNode.NType
which describes the managed fields of the class of this node.protected Map
final Item[]
getPath()
final PluginDescriptor
final Registry
Returns theRegistry
which is linked with this instance.final Item
getRoot()
final Transaction
getUniqueName
(String name, boolean human) final Object
boolean
initPluginDescriptor
(PluginDescriptor plugin) final boolean
boolean
boolean
isEditable
(Field field) boolean
final boolean
isPluginItem
(String pluginId, String name) final boolean
final Item
makeUserItem
(boolean recursive) protected Node
This method returns a new instance of the class of this node.protected String
Computes the class-specific part of the string returned byNode.toString()
which shall be enclosed in brackets.protected boolean
readAttribute
(String uri, String name, String value) final void
remove()
static final void
removeDerivedItems
(Registry r, ObjectList items) static Item
resolveItem
(RegistryContext ctx, String key) protected final void
set
(ManageableType.Field field, int[] indices, Object value) void
setDefaultDescription
(Described descr) void
setDescription
(Described description) void
setDescription
(String type, Object value) protected void
void
Sets the name of this node.protected static final void
setNameIfNull
(Item item, String name) void
void
substitute
(Item prev) boolean
validate()
Methods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, edgeChanged, fieldModified, findAdjacent, findRefinementType, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplace
Methods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
systemId
-
$TYPE
-
systemId$FIELD
-
-
Constructor Details
-
Item
-
Item
-
-
Method Details
-
getNTypeImpl
Description copied from class:Node
This method returns theNode.NType
which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImpl
in classNode
- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:Node
This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstance
in classNode
- Returns:
- new instance of class of this node
-
getSystemId
-
resolveItem
-
resolveLink
-
getLock
-
getWriteLock
-
dupUnmanagedFields
- Overrides:
dupUnmanagedFields
in classNode
-
getDefaultValue
-
getI18NBundle
-
getFromResource
-
classForName
- Throws:
ClassNotFoundException
-
setDirectory
protected void setDirectory() -
isDirectory
public boolean isDirectory() -
makeUserItem
-
isUserItem
public final boolean isUserItem() -
setName
Description copied from class:Node
Sets the name of this node. -
setNameIfNull
-
isPluginItem
-
getAbsoluteName
-
getRoot
-
setDescription
-
setDefaultDescription
-
setDescription
-
getDescription
Description copied from interface:Described
Returns the description associated with the giventype
.type
has to be one of the predefined constants of this interface, the returned value has to conform to the specification of the used constant.- Specified by:
getDescription
in interfaceDescribed
- Parameters:
type
- the type of description- Returns:
- the description, or
null
if no description is available
-
getDerivedDescription
-
getDefaultDescription
-
getDescriptionImpl
-
getParentMap
-
getAccessor
- Overrides:
getAccessor
in classNode
-
getAccessor
- Overrides:
getAccessor
in classNode
-
getAttributes
- Overrides:
getAttributes
in classNode
-
get
Description copied from interface:Map
Returns the value associated withkey
. If there is no value associated withkey
,defaultValue
is returned. -
setOption
-
initPluginDescriptor
-
getPluginDescriptor
-
getClassLoader
-
isActivated
public final boolean isActivated() -
deriveItems
-
removeDerivedItems
-
activate
public final void activate() -
deactivate
public final void deactivate() -
activateImpl
protected void activateImpl() -
deactivateImpl
protected void deactivateImpl() -
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-
validate
public boolean validate() -
getItem
-
isEditable
-
equals
-
getPath
-
beginXA
public final void beginXA() -
getTransaction
-
commitXA
public final void commitXA(boolean activateItems) -
addUserItem
-
addUserItemWithUniqueName
-
add
-
addWithUniqueName
-
add
-
substitute
-
remove
public final void remove() -
set
-
findFirst
-
findAll
-
forAll
-
findMax
-
findFirst
-
findFirst
public static Item findFirst(RegistryContext ctx, String root, ItemCriterion c, Object info, boolean resolve) -
findAll
-
findAll
public static Item[] findAll(RegistryContext ctx, String root, ItemCriterion c, Object info, boolean resolve) -
forAll
public static void forAll(Item root, ItemCriterion c, Object info, ItemVisitor cb, Object cbInfo, boolean resolve) -
forAll
public static void forAll(RegistryContext ctx, String root, ItemCriterion c, Object info, ItemVisitor cb, Object cbInfo, boolean resolve) -
findMax
-
findMax
public static Item findMax(RegistryContext ctx, String root, ItemComparator c, Object info, boolean resolve) -
getUniqueName
-
paramString
Description copied from class:Node
Computes the class-specific part of the string returned byNode.toString()
which shall be enclosed in brackets. This should be used to show important properties of this node.- Overrides:
paramString
in classNode
- Returns:
- string describing some important properties of this node
-
delete
public void delete() -
copy
-
getAttributes
- Throws:
SAXException
-
readAttribute
- Throws:
SAXException
-
createItem
protected Item createItem(PersistenceBindings pb, String name) throws InvocationTargetException, InstantiationException, IllegalAccessException, ClassNotFoundException -
addRequiredFiles
-
addPluginPrerequisites
-
addPluginPrerequisite
-
hasEditableOptions
public boolean hasEditableOptions() -
isOptionCategory
public boolean isOptionCategory()
-