com.bbn.swede.core.dom
Class Base

java.lang.Object
  extended bycom.bbn.swede.core.dom.OASTNode
      extended bycom.bbn.swede.core.dom.AttributeNode
          extended bycom.bbn.swede.core.dom.Base

public class Base
extends AttributeNode

Custom attribute node implementation for xml:base.

Author:
jlerner

Nested Class Summary
 
Nested classes inherited from class com.bbn.swede.core.dom.OASTNode
OASTNode.NodeCleanupVisitor, OASTNode.NodeInitVisitor
 
Field Summary
 
Fields inherited from class com.bbn.swede.core.dom.AttributeNode
_sValue
 
Fields inherited from class com.bbn.swede.core.dom.OASTNode
_iLength, _iOffset, _nodeParent, _tree, AS_OWL, AS_RDF, AS_RDFS, BASE, COMMENT, DOCTYPE, DOCUMENT, GENERICATTRIBUTE, GENERICPREDICATE, GENERICTHING, LITERAL, NAMESPACE, OWL, OWL_ALLDIFFERENT, OWL_ALLVALUESFROM, OWL_ANNOTATIONPROPERTY, OWL_BACKWARDCOMPATIBLEWITH, OWL_CARDINALITY, OWL_CLASS, OWL_COMPLEMENTOF, OWL_DATARANGE, OWL_DATATYPEPROPERTY, OWL_DEPRECATEDCLASS, OWL_DEPRECATEDPROPERTY, OWL_DIFFERENTFROM, OWL_DISJOINTWITH, OWL_DISTINCTMEMBERS, OWL_EQUIVALENTCLASS, OWL_EQUIVALENTPROPERTY, OWL_FUNCTIONALPROPERTY, OWL_HASVALUE, OWL_IMPORTS, OWL_INCOMPATIBLEWITH, OWL_INTERSECTIONOF, OWL_INVERSEFUNCTIONALPROPERTY, OWL_INVERSEOF, OWL_MAXCARDINALITY, OWL_MINCARDINALITY, OWL_NOTHING, OWL_OBJECTPROPERTY, OWL_ONEOF, OWL_ONPROPERTY, OWL_ONTOLOGY, OWL_ONTOLOGYPROPERTY, OWL_PRIORVERSION, OWL_RESTRICTION, OWL_SAMEAS, OWL_SOMEVALUESFROM, OWL_SYMMETRICPROPERTY, OWL_THING, OWL_TRANSITIVEPROPERTY, OWL_UNIONOF, OWL_VERSIONINFO, PROCESSING_INSTRUCTION, RDF, RDF_ABOUT, RDF_ALT, RDF_BAG, RDF_DATATYPE, RDF_DESCRIPTION, RDF_FIRST, RDF_ID, RDF_LIST, RDF_NODEID, RDF_OBJECT, RDF_PARSETYPE, RDF_PREDICATE, RDF_PROPERTY, RDF_RDF, RDF_RESOURCE, RDF_REST, RDF_SEQ, RDF_STATEMENT, RDF_SUBJECT, RDF_TYPE, RDF_VALUE, RDF_XMLLITERAL, RDFS, RDFS_CLASS, RDFS_COMMENT, RDFS_CONTAINER, RDFS_CONTAINERMEMBERSHIPPROPERTY, RDFS_DATATYPE, RDFS_DOMAIN, RDFS_ISDEFINEDBY, RDFS_LABEL, RDFS_LITERAL, RDFS_MEMBER, RDFS_RANGE, RDFS_RESOURCE, RDFS_SEEALSO, RDFS_SUBCLASSOF, RDFS_SUBPROPERTYOF, S_OWL_URI, S_RDF_URI, S_RDFS_URI, S_XSD_URI, UNPARSEABLE, XML_VERSION
 
Constructor Summary
Base(String sValue)
          Creates a Base node.
 
Method Summary
protected  void cleanup()
          Cleanup method called when a node is detached from an IOWLAbstractSyntaxTree.
 int getNodeType()
          Returns an integer indicating a node's type.
 String getQName()
          Returns the node's qualified name.
protected  void init()
          Initialization method called when a node is attached to an IOWLAbstractSyntaxTree.
protected  void setDocumentURI()
          Sets the containing document's URI to match the value of its xml:base.
 
Methods inherited from class com.bbn.swede.core.dom.AttributeNode
allowedChildren, clone, create, displace, duplicateType, generateNodeText, getValue, initRegions, setValue, setValueRegion, simplePartitioning, toString
 
Methods inherited from class com.bbn.swede.core.dom.OASTNode
accept, appendChild, attach, createChild, createChildAttribute, detach, displace, endsBefore, findCommonAncestor, findXmlBase, getChildren, getContainingChild, getDefaultNamespace, getFirstChild, getLastAttribute, getLength, getLevel, getLockObject, getName, getNamespace, getNamespaces, getNextChild, getNodesOfType, getNodesOfType, getOffset, getOWLAbstractSyntaxTree, getOWLDocument, getParent, getPreviousChild, getQName, getRoot, getUri, getXmlBase, insert, match, remove, replace, setLength, setOffset, startsAfter
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Base

public Base(String sValue)
Creates a Base node.

Parameters:
sValue - The value of the attribute.
Method Detail

setDocumentURI

protected void setDocumentURI()
Sets the containing document's URI to match the value of its xml:base.


getNodeType

public int getNodeType()
Description copied from class: OASTNode
Returns an integer indicating a node's type. Subclasses must override this method to return one of the node types defined as public static fields in OASTNode. There is a distinct node type for each langauge element as well as several additional types for generics and XML constructs.

Specified by:
getNodeType in class OASTNode
Returns:
The type of this node

getQName

public String getQName()
Description copied from class: OASTNode
Returns the node's qualified name. This implementation returns qnames for language nodes, and null for everything else. Subclasses that represent non-language tags and attributes should override this method to return a non-null qname.

Overrides:
getQName in class OASTNode
Returns:
The qualified name of the node, or null if it is not a lanuage node

init

protected void init()
Description copied from class: OASTNode
Initialization method called when a node is attached to an IOWLAbstractSyntaxTree. Subclasses may override this method to perform additional custom setup, but must call super.init() to execute standard initialization code.

Overrides:
init in class OASTNode

cleanup

protected void cleanup()
Description copied from class: OASTNode
Cleanup method called when a node is detached from an IOWLAbstractSyntaxTree. Subclasses may override this method to perform additional custom cleanup operations, but must call super.cleanup() to execute standard destruction code.

Overrides:
cleanup in class OASTNode


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.