|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.schema.DocumentSchema
public class DocumentSchema
Document's content modifier helper. For chosen operation returns all possibilities, that will result in valid document. Not intended to be subclassed nor instantiated by clients.
| Constructor Summary | |
|---|---|
DocumentSchema(DomCore doc)
Constructor. |
|
| Method Summary | |
|---|---|
AttributeRule |
getAttributeRule(Attr attribute)
Gets attribute rule for given attribute. |
ElementRule |
getElementRule(Element element)
Returns rule for given element. |
SchemaReferences |
getRefs()
Returns object containing references to loaded schema objects. |
boolean |
isDeletableAttribute(Attr attribute)
Checks, whether given attribute is deletable from its element. |
void |
validate()
Validates this document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentSchema(DomCore doc)
doc - the document instance.| Method Detail |
|---|
public ElementRule getElementRule(Element element)
element - the context element, for which rule will be created.
public boolean isDeletableAttribute(Attr attribute)
ElementRule instance, it's more
effective.
attribute - attribute to check.
public AttributeRule getAttributeRule(Attr attribute)
ElementRule instance, it's more effective.
attribute - return rule for this attribute.
public void validate()
throws SchemaException
SchemaException - if something goes wrong in the process of
validation.public SchemaReferences getRefs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||