net.ontopia.topicmaps.schema.impl.osl
Class OSLSchemaContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.topicmaps.schema.impl.osl.OSLSchemaContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class OSLSchemaContentHandler
- extends org.xml.sax.helpers.DefaultHandler
INTERNAL: SAX2 content handler used for importing OSL topic map
schemas into the schema object model.
Method Summary |
void |
beginElement(String name,
Attributes attrs)
|
void |
endDocument()
|
void |
endElement(String name)
|
void |
endElement(String uri,
String lname,
String qname)
|
protected AssociationClass |
getAssociationClass()
|
protected AssociationRoleConstraint |
getAssociationRoleConstraint()
|
protected SAXException |
getException(String message)
|
OSLSchema |
getSchema()
|
protected ScopedConstraintIF |
getScopedConstraint()
|
protected ScopeSpecification |
getScopeSpecification()
|
protected TopicClass |
getTopicClass()
|
protected TopicConstraintCollection |
getTopicConstraintCollection()
|
protected TopicNameConstraint |
getTopicNameConstraint()
|
protected TopicRoleConstraint |
getTopicRoleConstraint()
|
protected boolean |
getTrueFalse(String value,
String tvalue,
String fvalue)
|
protected TypedConstraintIF |
getTypedConstraint()
|
protected TypeSpecification |
getTypeSpecification()
|
protected VariantConstraint |
getVariantConstraint()
|
protected void |
inheritScope(ScopedConstraintIF parent,
ScopedConstraintIF child)
|
void |
setDocumentLocator(Locator locator)
|
protected void |
setMinMax(CardinalityConstraintIF constraint,
Attributes attrs)
|
void |
startDocument()
|
void |
startElement(String name,
Attributes attrs)
|
void |
startElement(String uri,
String lname,
String qname,
Attributes attrs)
|
void |
stopElement(String name)
|
protected void |
verifyParent(String name)
|
protected void |
verifyParent(String[] names)
|
protected void |
verifyParent(String name1,
String name2)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xrfactory
protected XMLReaderFactoryIF xrfactory
base_address
protected LocatorIF base_address
schema
protected OSLSchema schema
curelem
protected String curelem
saxlocator
protected Locator saxlocator
openElements
protected Stack openElements
openObjects
protected Stack openObjects
forwardrefs
protected List forwardrefs
OSLSchemaContentHandler
public OSLSchemaContentHandler(XMLReaderFactoryIF xrfactory,
LocatorIF base_address)
beginElement
public void beginElement(String name,
Attributes attrs)
throws MalformedURLException,
SAXException
- Throws:
MalformedURLException
SAXException
stopElement
public void stopElement(String name)
throws SAXException
- Throws:
SAXException
startDocument
public void startDocument()
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(String name,
Attributes attrs)
throws SAXException
- Throws:
SAXException
endElement
public void endElement(String name)
throws SAXException
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String lname,
String qname,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String lname,
String qname)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
getSchema
public OSLSchema getSchema()
getTopicConstraintCollection
protected TopicConstraintCollection getTopicConstraintCollection()
throws SAXException
- Throws:
SAXException
getTopicClass
protected TopicClass getTopicClass()
throws SAXException
- Throws:
SAXException
getAssociationClass
protected AssociationClass getAssociationClass()
throws SAXException
- Throws:
SAXException
getTopicRoleConstraint
protected TopicRoleConstraint getTopicRoleConstraint()
throws SAXException
- Throws:
SAXException
getAssociationRoleConstraint
protected AssociationRoleConstraint getAssociationRoleConstraint()
throws SAXException
- Throws:
SAXException
getTopicNameConstraint
protected TopicNameConstraint getTopicNameConstraint()
throws SAXException
- Throws:
SAXException
getVariantConstraint
protected VariantConstraint getVariantConstraint()
throws SAXException
- Throws:
SAXException
getScopedConstraint
protected ScopedConstraintIF getScopedConstraint()
throws SAXException
- Throws:
SAXException
getTypedConstraint
protected TypedConstraintIF getTypedConstraint()
throws SAXException
- Throws:
SAXException
getScopeSpecification
protected ScopeSpecification getScopeSpecification()
throws SAXException
- Throws:
SAXException
getTypeSpecification
protected TypeSpecification getTypeSpecification()
throws SAXException
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interface ContentHandler
- Overrides:
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
verifyParent
protected void verifyParent(String name)
throws SAXException
- Throws:
SAXException
verifyParent
protected void verifyParent(String name1,
String name2)
throws SAXException
- Throws:
SAXException
verifyParent
protected void verifyParent(String[] names)
throws SAXException
- Throws:
SAXException
getException
protected SAXException getException(String message)
inheritScope
protected void inheritScope(ScopedConstraintIF parent,
ScopedConstraintIF child)
setMinMax
protected void setMinMax(CardinalityConstraintIF constraint,
Attributes attrs)
throws SAXException
- Throws:
SAXException
getTrueFalse
protected boolean getTrueFalse(String value,
String tvalue,
String fvalue)
throws SAXException
- Throws:
SAXException
Copyright © 2000-2012 Ontopia.