public void addAnnotation(XSAnnotation annotation) { if (fAnnotations == XSObjectListImpl.EMPTY_LIST) { fAnnotations = new XSObjectListImpl(); } ((XSObjectListImpl)fAnnotations).addXSObject(annotation); }
public XSFacetImpl(short kind, String svalue, int ivalue, Object avalue, boolean fixed, XSAnnotation annotation) { this.kind = kind; this.svalue = svalue; this.ivalue = ivalue; this.avalue = avalue; this.fixed = fixed; if (annotation != null) { this.annotations = new XSObjectListImpl(); ((XSObjectListImpl)this.annotations).addXSObject(annotation); } else { this.annotations = XSObjectListImpl.EMPTY_LIST; } }
resultComps.addXSObject((XSObject)result.get(i));
private XSObjectListImpl getAssertsFromAttributes(XMLAttributes attributes) { XSObjectListImpl attrAssertList = new XSObjectListImpl(); List xsTypeList = new ArrayList(); for (int attrIndx = 0; attrIndx < attributes.getLength(); attrIndx++) { Augmentations attrAugs = attributes.getAugmentations(attrIndx); AttributePSVImpl attrPSVI = (AttributePSVImpl) attrAugs.getItem(Constants.ATTRIBUTE_PSVI); XSSimpleTypeDefinition attrType = (XSSimpleTypeDefinition) attrPSVI.getTypeDefinition(); if (attrType != null && !XS11TypeHelper.isListContainsType(xsTypeList, attrType)) { // since different attributes may be validated by the same type, so we deduplicate the type list here // to only store unique assertions. xsTypeList.add(attrType); List attrAsserts = getAssertsFromSimpleType(attrType); // copy assertions to the parent list if (attrAsserts != null) { for (Iterator iter = attrAsserts.iterator(); iter.hasNext();) { attrAssertList.addXSObject((XSAssertImpl)iter.next()); } } } } return attrAssertList; } // getAssertsFromAttributes
complexTypeAsserts.addXSObject((XSAssert) primaryAssertions.get(assertIdx)); complexTypeAsserts.addXSObject((XSAssert) simpleContentAsserts.get(assertIdx)); complexTypeAsserts.addXSObject((XSAssert) baseItemTypeAsserts.get(assertIdx)); int attrAssertCount = attrAsserts.getLength(); for (int attrAssertIdx = 0; attrAssertIdx < attrAssertCount; attrAssertIdx++) { complexTypeAsserts.addXSObject(attrAsserts.item(attrAssertIdx));
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
enumAnnotations.addXSObject(null); if (hasQName) enumNSDecls.addElement(nsDecls); DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { enumAnnotations.addXSObject(enumAnnotations.getLength()-1,traverseAnnotationDecl(child, attrs, false, schemaDoc)); child = DOMUtil.getNextSiblingElement(child); String text = DOMUtil.getSyntheticAnnotation(content); if (text != null) { enumAnnotations.addXSObject(enumAnnotations.getLength()-1, traverseSyntheticAnnotation(content, text, attrs, false, schemaDoc)); patternAnnotations = new XSObjectListImpl(); patternAnnotations.addXSObject(traverseAnnotationDecl(child, attrs, false, schemaDoc)); child = DOMUtil.getNextSiblingElement(child); patternAnnotations = new XSObjectListImpl(); patternAnnotations.addXSObject(traverseSyntheticAnnotation(content, text, attrs, false, schemaDoc)); if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject(annotation);
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject (annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (patternAnnotations != null) { for (int i = fBase.patternAnnotations.getLength()-1; i >= 0; --i) { patternAnnotations.addXSObject(fBase.patternAnnotations.item(i));
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else {
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject (annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject (annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject (annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl) annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject(annotation); } else { annotations = XSObjectListImpl.EMPTY_LIST;
if (annotation != null) { annotations = new XSObjectListImpl(); ((XSObjectListImpl)annotations).addXSObject(annotation);