/** Default constructor. */ public QName() { clear(); } // <init>()
/** * clear */ public void clear() { this.name.clear(); this.simpleType.clear(); this.optional = false; } // clear
/** * clear */ public void clear() { this.name.clear(); this.type = -1; this.scope = -1; this.contentModelValidator = null; this.simpleType.clear(); } // clear
public void setStAXResult(StAXResult result) { fIgnoreChars = false; fInCDATA = false; fAttrName.clear(); fStreamWriter = (result != null) ? result.getXMLStreamWriter() : null; }
/** Character data in content. */ private void charDataInContent() { if (DEBUG_ELEMENT_CHILDREN) { System.out.println("charDataInContent()"); } if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildren.length * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.clear(); fElementChildrenLength++; } // charDataInCount()
/** * Constructs a simple content model. * * @param operator The content model operator. * @param firstChild qualified name of the first child * @param secondChild qualified name of the second child * */ public SimpleContentModel(short operator, QName firstChild, QName secondChild) { // // Store away the children and operation. This is all we need to // do the content model check. // // The operation is one of the ContentSpecNode.NODE_XXX values! // fFirstChild.setValues(firstChild); if (secondChild != null) { fSecondChild.setValues(secondChild); } else { fSecondChild.clear(); } fOperator = operator; }
fCurrentElement.clear(); fCurrentElementIndex = -1; fCurrentContentSpecType = -1;
fCurrentContentSpecType = -1; fRootElement.clear();