/** * 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); }
public int size() { return getLength(); }
public Object[] toArray() { if (fVector != null) { return fVector.toArray(); } Object[] a = new Object[fLength]; toArray0(a); return a; }
/** * [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 Object[] toArray(Object[] a) { if (fVector != null) { return fVector.toArray(a); } if (a.length < fLength) { Class arrayClass = a.getClass(); Class componentType = arrayClass.getComponentType(); a = (Object[]) Array.newInstance(componentType, fLength); } toArray0(a); if (a.length > fLength) { a[fLength] = null; } return a; }
public StringList getRecognizedVersions() { StringListImpl list = new StringListImpl(new String[]{"1.0"}, 1); return list; }
/** * A list of enumeration values if it exists, otherwise an empty * <code>StringList</code>. */ public StringList getLexicalEnumeration() { if (fLexicalEnumeration == null){ if (fEnumeration == null) return StringListImpl.EMPTY_LIST; int size = fEnumerationSize; String[] strs = new String[size]; for (int i = 0; i < size; i++) strs[i] = fEnumeration[i].normalizedValue; fLexicalEnumeration = new StringListImpl(strs, size); } return fLexicalEnumeration; }
/** * {fields} A non-empty list of restricted XPath ([XPath]) expressions. */ public StringList getFieldStrs() { String[] strs = new String[fFieldCount]; for (int i = 0; i < fFieldCount; i++) strs[i] = fFields[i].toString(); return new StringListImpl(strs, fFieldCount); }
public StringList createStringList(String[] values) { int length = (values != null) ? values.length : 0; return (length != 0) ? new StringListImpl((String[]) values.clone(), length) : StringListImpl.EMPTY_LIST; }
fLexicalPattern = new StringListImpl(strs, strs.length);
fGlobalComponents = new XSNamedMap[MAX_COMP_IDX+1]; fNSComponents = new XSNamedMap[len][MAX_COMP_IDX+1]; fNamespacesList = new StringListImpl(fNamespaces, fGrammarCount);
XSModel model = schemaLoader.loadURIList( new StringListImpl( schemaUrls, schemaUrls.length ) ); if ( !errorHandler.getErrors().isEmpty() ) { throw new XMLProcessingException( errorHandler.getErrors().get( 0 ) );