/** * {particles} A list of particles */ public XSObjectList getParticles() { return new XSObjectListImpl(fParticles, fParticleCount); }
/** * [document location] * @see <a href="http://www.w3.org/TR/xmlschema-1/#sd-document_location">[document location]</a> * @return a list of document information item */ public StringList getDocumentLocations() { return new StringListImpl(fLocations); }
public void addAnnotation(XSAnnotation annotation) { if (fAnnotations == XSObjectListImpl.EMPTY_LIST) { fAnnotations = new XSObjectListImpl(); } ((XSObjectListImpl)fAnnotations).addXSObject(annotation); }
public boolean contains(Object value) { return (value == null) ? containsNull() : containsObject(value); }
public final XInt getXInt(int value) { if (value >= 0 && value < fXIntPool.length) return fXIntPool[value]; else return new XInt(value); } }
/** * {identity-constraint definitions} A set of constraint definitions. */ public XSNamedMap getIdentityConstraints() { return new XSNamedMapImpl(fIDConstraints, fIDCPos); }
public int size() { return getLength(); }
/** * Return an <code>XSModel</code> that represents components in * the schema grammars in this pool implementation. * * @return an <code>XSModel</code> representing this schema grammar */ public XSModel toXSModel() { return toXSModel(Constants.SCHEMA_VERSION_1_0); }
public Object[] toArray() { Object[] a = new Object[fLength]; toArray0(a); return a; }
public Object[] toArray() { Object[] a = new Object[fLength]; toArray0(a); return a; }
public Object[] toArray() { Object[] a = new Object[fLength]; toArray0(a); return a; }
public int size() { return getLength(); }
public boolean containsKey(Object key) { return (get(key) != null); }
public int size() { return getLength(); }
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; } }
public XSObjectList getMemberTypeDefinitions() { if (memberTypes == null) { return XSObjectListImpl.EMPTY_LIST; } return new XSObjectListImpl(memberTypes, memberTypes.length); }
/** * Namespace constraint. For <code>constraintType</code> * LIST_NSCONSTRAINT, the list contains allowed namespaces. For * <code>constraintType</code> NOT_NSCONSTRAINT, the list contains * disallowed namespaces. */ public StringList getNsConstraintList() { return new StringListImpl(fNamespaceList, fNamespaceList == null ? 0 : fNamespaceList.length); }
/** * Optional. Annotation. */ public XSObjectList getAnnotations() { return new XSObjectListImpl(fAnnotations, fNumAnnotations); }
public StringList getRecognizedVersions() { StringListImpl list = new StringListImpl(new String[]{"1.0"}, 1); return list; }
/** * @see org.apache.xerces.xs.XSNamespaceItem#getAnnotations() */ public XSObjectList getAnnotations() { if (fNumAnnotations == 0) { return XSObjectListImpl.EMPTY_LIST; } return new XSObjectListImpl(fAnnotations, fNumAnnotations); }