本文整理汇总了Java中com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl.EMPTY_LIST属性的典型用法代码示例。如果您正苦于以下问题:Java XSObjectListImpl.EMPTY_LIST属性的具体用法?Java XSObjectListImpl.EMPTY_LIST怎么用?Java XSObjectListImpl.EMPTY_LIST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl
的用法示例。
在下文中一共展示了XSObjectListImpl.EMPTY_LIST属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGlobalElements
private XSObjectListImpl getGlobalElements() {
final SymbolHash[] tables = new SymbolHash[fGrammarCount];
int length = 0;
for (int i = 0; i < fGrammarCount; i++) {
tables[i] = fGrammarList[i].fAllGlobalElemDecls;
length += tables[i].getLength();
}
if (length == 0) {
return XSObjectListImpl.EMPTY_LIST;
}
final XSObject[] components = new XSObject[length];
int start = 0;
for (int i = 0; i < fGrammarCount; i++) {
tables[i].getValues(components, start);
start += tables[i].getLength();
}
return new XSObjectListImpl(components, length);
}
示例2: getMemberTypes
/**
* If variety is <code>union</code> the list of member type definitions (a
* non-empty sequence of simple type definitions) is available,
* otherwise an empty <code>XSObjectList</code>.
*/
public XSObjectList getMemberTypes() {
if (fVariety == VARIETY_UNION) {
return new XSObjectListImpl(fMemberTypes, fMemberTypes.length);
}
else {
return XSObjectListImpl.EMPTY_LIST;
}
}
示例3: XSFacetImpl
public XSFacetImpl(short kind, String value, boolean fixed, XSAnnotation annotation) {
this.kind = kind;
this.value = value;
this.fixed = fixed;
if (annotation != null) {
this.annotations = new XSObjectListImpl();
((XSObjectListImpl)this.annotations).addXSObject(annotation);
}
else {
this.annotations = XSObjectListImpl.EMPTY_LIST;
}
}
示例4: getAnnotations
/**
* @see org.apache.xerces.xs.XSNamespaceItem#getAnnotations()
*/
public XSObjectList getAnnotations() {
if (fNumAnnotations == 0) {
return XSObjectListImpl.EMPTY_LIST;
}
return new XSObjectListImpl(fAnnotations, fNumAnnotations);
}
示例5: getEmptySequence
public static XSParticleDecl getEmptySequence() {
if (fEmptyParticle == null) {
XSModelGroupImpl group = new XSModelGroupImpl();
group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
group.fParticleCount = 0;
group.fParticles = null;
group.fAnnotations = XSObjectListImpl.EMPTY_LIST;
XSParticleDecl particle = new XSParticleDecl();
particle.fType = XSParticleDecl.PARTICLE_MODELGROUP;
particle.fValue = group;
particle.fAnnotations = XSObjectListImpl.EMPTY_LIST;
fEmptyParticle = particle;
}
return fEmptyParticle;
}
示例6: getAnnotations
/**
* Optional. Annotations.
*/
public XSObjectList getAnnotations() {
return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
示例7: getAnnotations
/**
* Optional. Annotation.
*/
public XSObjectList getAnnotations() {
return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
示例8: XSMVFacetImpl
public XSMVFacetImpl(short kind, StringList svalues, ObjectList avalues, XSObjectList annotations) {
this.kind = kind;
this.svalues = svalues;
this.avalues = avalues;
this.annotations = (annotations != null) ? annotations : XSObjectListImpl.EMPTY_LIST;
}
示例9: getMemberTypeDefinitions
public XSObjectList getMemberTypeDefinitions() {
if (memberTypes == null) {
return XSObjectListImpl.EMPTY_LIST;
}
return new XSObjectListImpl(memberTypes, memberTypes.length);
}
示例10: getAnnotations
public XSObjectList getAnnotations() {
return XSObjectListImpl.EMPTY_LIST;
}
示例11: getAttributeUses
public XSObjectList getAttributeUses() {
return XSObjectListImpl.EMPTY_LIST;
}
示例12: XSMVFacetImpl
public XSMVFacetImpl(short kind, StringList values, XSObjectList annotations) {
this.kind = kind;
this.values = values;
this.annotations = (annotations != null) ? annotations : XSObjectListImpl.EMPTY_LIST;
}
示例13: getAnnotations
/**
* [annotations]: a set of annotations for this simple type component if
* it exists, otherwise an empty <code>XSObjectList</code>.
*/
public XSObjectList getAnnotations() {
return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}