java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.pf.registry.Item
de.grogra.pf.registry.PluginDescriptor
- All Implemented Interfaces:
Manageable,PersistenceCapable,Shareable,RegistryContext,UserFields,XObject,Described,Map,Serializable,Comparable<PluginDescriptor>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NTypestatic final intstatic final Node.NType.Fieldstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Node.NType.FieldFields inherited from class de.grogra.pf.registry.Item
systemId, systemId$FIELDFields 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_BITSFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd the EXT folder to the registry for it to be loaded before the core.protected static voidaddJarToMap(Map<String, File> m, File root) protected static intcompareExtVersion(String o1, String o2) To compare the extensions versionsintFirst take the plugin descriptor from the highest directory priority (the user parameter plugin > the groimp installation folder > the pm plugin repo).static PluginDescriptorcreateCoreDescriptor(ObjectList<File> libDir) static PluginDescriptorcreateCoreDescriptor(File libDir) Returns the value associated withkey.protected static StringgetExtVersion(String name) static PluginDescriptorgetInstance(Class cls) static PluginDescriptorgetInstance(ClassLoader loader) static PluginDescriptorgetInstance(String pluginId) String[]Return the library (item) name, even if the library has not been loaded (thus the file is null).Object[]protected Node.NTypeThis method returns theNode.NTypewhich describes the managed fields of the class of this node.intgetURLForResource(String name) voidvoidbooleanloadPlugin(Registry registry, ClassLoader parentLoader) protected NodeThis method returns a new instance of the class of this node.static PluginDescriptorread(String systemId, InputStream in, FileSystem fs, Object dir) protected booleanreadAttribute(String uri, String name, String value) voidsetI18NBundle(I18NBundle bundle) voidsetPluginState(int state) toString()Methods inherited from class de.grogra.pf.registry.Item
activate, activateImpl, add, add, addPluginPrerequisite, addPluginPrerequisites, addRequiredFiles, addUserItem, addUserItemWithUniqueName, addWithUniqueName, beginXA, classForName, commitXA, copy, createItem, deactivate, deactivateImpl, delete, deriveItems, dupUnmanagedFields, equals, findAll, findAll, findAll, findFirst, findFirst, findFirst, findMax, findMax, findMax, forAll, forAll, forAll, getAbsoluteName, getAccessor, getAccessor, getAttributes, getAttributes, getDefaultDescription, getDefaultValue, getDerivedDescription, getDescription, getDescriptionImpl, getFromResource, getItem, getLock, getParentMap, getPath, getPluginDescriptor, getRegistry, getRoot, getSystemId, getTransaction, getUniqueName, getWriteLock, hasEditableOptions, initPluginDescriptor, isActivated, isDirectory, isEditable, isOptionCategory, isPluginItem, isUserItem, makeUserItem, paramString, remove, removeDerivedItems, resolveItem, resolveLink, set, setDefaultDescription, setDescription, setDescription, setDirectory, setName, setNameIfNull, setOption, substitute, validateMethods 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, writeReplaceMethods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
FRESH
public static final int FRESH- See Also:
-
DISABLED
public static final int DISABLED- See Also:
-
ERROR
public static final int ERROR- See Also:
-
MISSING_PREREQUISITE
public static final int MISSING_PREREQUISITE- See Also:
-
INACTIVE
public static final int INACTIVE- See Also:
-
ACTIVE
public static final int ACTIVE- See Also:
-
CONFLICT_WITH_PLUGIN
public static final int CONFLICT_WITH_PLUGIN- See Also:
-
$TYPE
-
version$FIELD
-
cls$FIELD
-
-
Method Details
-
getNTypeImpl
Description copied from class:NodeThis method returns theNode.NTypewhich describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImplin classItem- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:NodeThis method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstancein classItem- Returns:
- new instance of class of this node
-
createCoreDescriptor
-
createCoreDescriptor
-
addJarToMap
-
getPluginVersion
-
getPluginName
-
getPluginProvider
-
get
Description copied from interface:MapReturns the value associated withkey. If there is no value associated withkey,defaultValueis returned. -
readAttribute
- Overrides:
readAttributein classItem- Throws:
SAXException
-
read
public static PluginDescriptor read(String systemId, InputStream in, FileSystem fs, Object dir) throws IOException - Throws:
IOException
-
loadPlugin
-
addExtensionToRegistry
protected void addExtensionToRegistry()Add the EXT folder to the registry for it to be loaded before the core. -
getPluginDirectory
-
getFileSystem
-
setPluginState
public void setPluginState(int state) -
getPluginState
public int getPluginState() -
getPlugin
-
toString
-
getI18NBundle
- Overrides:
getI18NBundlein classItem
-
setI18NBundle
-
getLibraryFiles
-
getClassLoader
- Overrides:
getClassLoaderin classItem
-
getPluginClassLoader
-
getURLForResource
-
getInstance
-
getInstance
-
getInstance
-
getConfigurationDirectory
-
loadMethodsDoc
public void loadMethodsDoc() -
loadMethodsDoc
-
compareTo
First take the plugin descriptor from the highest directory priority (the user parameter plugin > the groimp installation folder > the pm plugin repo). If they are the same, take the higher version.- Specified by:
compareToin interfaceComparable<PluginDescriptor>
-
compareExtVersion
To compare the extensions versions -
getExtVersion
-
getLibrariesNames
Return the library (item) name, even if the library has not been loaded (thus the file is null).
-