/** * Return null if this class is not bound to a class. */ CClassInfo getClassInfo() { if(!classInfoComputed) { classInfoComputed = true; classInfo = calcClass(); } return classInfo; }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
public void endContentModel(String elementName, short contentModelType) throws SAXException { assert modelGroups.size()==1; Term term = modelGroups.pop().wrapUp(); Element e = getOrCreateElement(elementName); e.define( contentModelType, term, copyLocator() ); }
public void childElement(String elementName, short occurence) throws SAXException { Element child = getOrCreateElement(elementName); modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); child.isReferenced = true; }
public void endContentModel(String elementName, short contentModelType) throws SAXException { assert modelGroups.size()==1; Term term = modelGroups.pop().wrapUp(); Element e = getOrCreateElement(elementName); e.define( contentModelType, term, copyLocator() ); }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
public void childElement(String elementName, short occurence) throws SAXException { Element child = getOrCreateElement(elementName); modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); child.isReferenced = true; }
/** * Return null if this class is not bound to a class. */ CClassInfo getClassInfo() { if(!classInfoComputed) { classInfoComputed = true; classInfo = calcClass(); } return classInfo; }
public void endContentModel(String elementName, short contentModelType) throws SAXException { assert modelGroups.size()==1; Term term = modelGroups.pop().wrapUp(); Element e = getOrCreateElement(elementName); e.define( contentModelType, term, copyLocator() ); }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
public void childElement(String elementName, short occurence) throws SAXException { Element child = getOrCreateElement(elementName); modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); child.isReferenced = true; }
/** * Return null if this class is not bound to a class. */ CClassInfo getClassInfo() { if(!classInfoComputed) { classInfoComputed = true; classInfo = calcClass(); } return classInfo; }
public void endContentModel(String elementName, short contentModelType) throws SAXException { assert modelGroups.size()==1; Term term = modelGroups.pop().wrapUp(); Element e = getOrCreateElement(elementName); e.define( contentModelType, term, copyLocator() ); }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
public void childElement(String elementName, short occurence) throws SAXException { Element child = getOrCreateElement(elementName); modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); child.isReferenced = true; }
public void endContentModel(String elementName, short contentModelType) throws SAXException { assert modelGroups.size()==1; Term term = modelGroups.pop().wrapUp(); Element e = getOrCreateElement(elementName); e.define( contentModelType, term, copyLocator() ); }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
public void childElement(String elementName, short occurence) throws SAXException { Element child = getOrCreateElement(elementName); modelGroups.peek().addTerm( Occurence.wrap( child, occurence ) ); child.isReferenced = true; }