EXIficient

com.siemens.ct.exi.grammar.rule
Class AbstractSchemaLessRule

java.lang.Object
  extended by com.siemens.ct.exi.grammar.rule.AbstractRule
      extended by com.siemens.ct.exi.grammar.rule.AbstractSchemaLessRule
All Implemented Interfaces:
Rule, SchemaLessRule
Direct Known Subclasses:
SchemaLessContent, SchemaLessDocContent, SchemaLessFragmentContent

public abstract class AbstractSchemaLessRule
extends AbstractRule
implements SchemaLessRule

TODO Description

Version:
0.4.20080919
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
AbstractSchemaLessRule()
           
 
Method Summary
 void addRule(Event event, Rule rule)
           
 int get1stLevelEventCodeLength(FidelityOptions fidelityOptions)
           
 int getLeastAttributeEventCode()
           
 int getNumberOfEvents()
           
 int getNumberOfSchemaDeviatedAttributes()
           
 Rule getTypeEmpty()
           
 boolean hasSecondOrThirdLevel(FidelityOptions fidelityOptions)
           
 boolean isSchemaInformed()
           
 EventInformation lookFor(int eventCode)
           
 EventInformation lookForAttribute(java.lang.String namespaceURI, java.lang.String localName)
           
 EventInformation lookForAttributeNS(java.lang.String namespaceURI)
           
 EventInformation lookForEvent(EventType eventType)
           
 EventInformation lookForStartElement(java.lang.String namespaceURI, java.lang.String localName)
           
 EventInformation lookForStartElementNS(java.lang.String namespaceURI)
           
 java.lang.String toString()
           
 
Methods inherited from class com.siemens.ct.exi.grammar.rule.AbstractRule
addTerminalRule, equals, get3rdLevelCharacteristics, get3rdLevelEvent, get3rdLevelEventCode, getElementContentRule, getLabel, hashCode, learnAttribute, learnCharacters, learnEndElement, learnStartElement, setLabel
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.siemens.ct.exi.grammar.rule.Rule
get2ndLevelCharacteristics, get2ndLevelEvent, get2ndLevelEventCode, get3rdLevelCharacteristics, get3rdLevelEvent, get3rdLevelEventCode, getElementContentRule, learnAttribute, learnCharacters, learnEndElement, learnStartElement
 

Constructor Detail

AbstractSchemaLessRule

public AbstractSchemaLessRule()
Method Detail

isSchemaInformed

public final boolean isSchemaInformed()
Specified by:
isSchemaInformed in interface Rule

hasSecondOrThirdLevel

public boolean hasSecondOrThirdLevel(FidelityOptions fidelityOptions)
Specified by:
hasSecondOrThirdLevel in interface Rule

getTypeEmpty

public Rule getTypeEmpty()

get1stLevelEventCodeLength

public int get1stLevelEventCodeLength(FidelityOptions fidelityOptions)
Specified by:
get1stLevelEventCodeLength in interface Rule

getNumberOfEvents

public int getNumberOfEvents()
Specified by:
getNumberOfEvents in interface Rule

addRule

public void addRule(Event event,
                    Rule rule)
Specified by:
addRule in interface Rule

getNumberOfSchemaDeviatedAttributes

public int getNumberOfSchemaDeviatedAttributes()
Specified by:
getNumberOfSchemaDeviatedAttributes in interface Rule

getLeastAttributeEventCode

public int getLeastAttributeEventCode()
Specified by:
getLeastAttributeEventCode in interface Rule

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

lookForEvent

public EventInformation lookForEvent(EventType eventType)
Specified by:
lookForEvent in interface Rule

lookForStartElement

public EventInformation lookForStartElement(java.lang.String namespaceURI,
                                            java.lang.String localName)
Specified by:
lookForStartElement in interface Rule

lookForStartElementNS

public EventInformation lookForStartElementNS(java.lang.String namespaceURI)
Specified by:
lookForStartElementNS in interface Rule

lookForAttribute

public EventInformation lookForAttribute(java.lang.String namespaceURI,
                                         java.lang.String localName)
Specified by:
lookForAttribute in interface Rule

lookForAttributeNS

public EventInformation lookForAttributeNS(java.lang.String namespaceURI)
Specified by:
lookForAttributeNS in interface Rule

lookFor

public EventInformation lookFor(int eventCode)
Specified by:
lookFor in interface Rule

EXIficient