Package org.cip4.jdflib.core
Class DocumentJDFImpl
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.CoreDocumentImpl
org.apache.xerces.dom.DocumentImpl
org.cip4.jdflib.core.DocumentXMLImpl
org.cip4.jdflib.core.DocumentJDFImpl
- All Implemented Interfaces:
Serializable,Cloneable,Document,DocumentEvent,EventTarget,Node,NodeList,DocumentRange,DocumentTraversal
implementation of the JDFLib class factory
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanskip initialization when creating a new elementbooleanif true, the factory is bypassed and only KElements are created rather than the typesafe element classesFields inherited from class org.cip4.jdflib.core.DocumentXMLImpl
initialMem, m_Bodypart, m_OriginalFileName, m_validationResult, m_ZipReader, nsMapFields inherited from class org.apache.xerces.dom.DocumentImpl
eventListeners, iteratorReferenceQueue, iterators, mutationEvents, rangeReferenceQueue, rangesFields inherited from class org.apache.xerces.dom.CoreDocumentImpl
actualEncoding, allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, fDocumentURI, identifiers, standalone, userData, version, xmlVersionChangedFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()createElementNS(String namespaceURI, String qualifiedName, String localPart) getClasses(Class<?> clazz) Class<?>getFactoryClass(String qualifiedName) Searches for the matching factory class in sm_PackageNames If a match could not be found then JDFResource.class is returned if the element is in a resource pool else if the element is in the default name space JDFElement.class is returned else KElement.class is returned will return JDFElement.class or JDFResource.class only.protected StringgetHoleTypeClass(String strParentNodeClass) protected StringgetMethodClass(String strParentNodeClass) protected StringgetPositionClass(String strParentNodeClass) protected StringgetShapeClass(String strParentNodeClass) protected StringgetSurfaceClass(String strParentNodeClass) protected XMLDocUserDataget/create the associated XMLDocUserDatastatic booleanstatic voidregisterCustomClass(String strElement, String packagepath) register new custom class in the factoryremoveChild(Node arg0) replaceChild(Node arg0, Node arg1) voidsetParentNode(Node node) static voidsetStaticStrictNSCheck(boolean staticStrictNSCheck) toString()Methods inherited from class org.cip4.jdflib.core.DocumentXMLImpl
clearDirty, createElement, createElementNS, getDocMemoryUsed, getNamespaceURIFromPrefix, isDirty, isIgnoreNSDefault, isStrictNSCheck, setDirty, setIgnoreNSDefault, setNamespaceURIFromPrefix, setStrictNSCheckMethods inherited from class org.apache.xerces.dom.DocumentImpl
addEventListener, cloneNode, copyEventListeners, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, dispatchingEventToSubtree, getEventListeners, getImplementation, removeEventListener, saveEnclosingAttr, setEventListenersMethods inherited from class org.apache.xerces.dom.CoreDocumentImpl
abort, adoptNode, callUserDataHandlers, canRenameElements, changed, changes, checkDOMNSErr, checkNamespaceWF, checkQName, clearIdentifiers, cloneNode, createAttribute, createAttributeNS, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElementDefinition, createEntity, createEntityReference, createNotation, createProcessingInstruction, createTextNode, getAsync, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getErrorChecking, getFeature, getIdentifier, getIdentifiers, getInputEncoding, getNodeName, getNodeNumber, getNodeNumber, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getTextContent, getUserData, getUserData, getUserDataRecord, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isKidOK, isValidQName, isXMLName, load, loadXML, normalizeDocument, putIdentifier, removeIdentifier, renameNode, saveXML, setAsync, setDocumentURI, setEncoding, setErrorChecking, setInputEncoding, setStandalone, setStrictErrorChecking, setTextContent, setUserData, setUserData, setVersion, setXmlEncoding, setXmlStandalone, setXmlVersion, undeferChildrenMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, isEqualNode, item, normalize, setOwnerDocument, setReadOnly, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getContainer, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, synchronizeDataMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
appendChild, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setUserData
-
Field Details
-
bKElementOnly
public boolean bKElementOnlyif true, the factory is bypassed and only KElements are created rather than the typesafe element classes -
bInitOnCreate
public boolean bInitOnCreateskip initialization when creating a new element
-
-
Constructor Details
-
DocumentJDFImpl
public DocumentJDFImpl()Constructor for DocumentJDFImpl.
-
-
Method Details
-
isStaticStrictNSCheck
public static boolean isStaticStrictNSCheck()- Returns:
- the bStaticStrictNSCheck
-
setStaticStrictNSCheck
public static void setStaticStrictNSCheck(boolean staticStrictNSCheck) - Parameters:
staticStrictNSCheck- the bStaticStrictNSCheck to set
-
clone
- Overrides:
clonein classDocumentXMLImpl- See Also:
-
CoreDocumentImpl.clone()
-
registerCustomClass
register new custom class in the factory- Parameters:
strElement- local namepackagepath- package path
-
getClasses
-
createElementNS
- Overrides:
createElementNSin classDocumentXMLImpl- Parameters:
namespaceURI-qualifiedName-localPart-- Returns:
- See Also:
-
CoreDocumentImpl.createElementNS(java.lang.String, java.lang.String, java.lang.String)
-
getFactoryClass
Searches for the matching factory class in sm_PackageNames If a match could not be found then JDFResource.class is returned if the element is in a resource pool else if the element is in the default name space JDFElement.class is returned else KElement.class is returned will return JDFElement.class or JDFResource.class only.- Parameters:
qualifiedName- the qualified name of the class- Returns:
-
getPositionClass
-
getSurfaceClass
-
getShapeClass
-
getMethodClass
-
getHoleTypeClass
-
toString
- Overrides:
toStringin classDocumentXMLImpl- See Also:
-
setParentNode
- Parameters:
node-
-
getXMLDocUserData
get/create the associated XMLDocUserData- Returns:
- the XMLDocUserData of this
-
removeChild
- Specified by:
removeChildin interfaceNode- Overrides:
removeChildin classorg.apache.xerces.dom.CoreDocumentImpl- Throws:
DOMException- See Also:
-
CoreDocumentImpl.removeChild(org.w3c.dom.Node)
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Overrides:
replaceChildin classorg.apache.xerces.dom.CoreDocumentImpl- Throws:
DOMException- See Also:
-
CoreDocumentImpl.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
-
getMyUserData
- Returns:
-