public class Type extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPLEX_TYPE_COMPLEX_CONTENT |
static int |
COMPLEX_TYPE_EMPTY_CONTENT |
static int |
COMPLEX_TYPE_MIXED_CONTENT |
static int |
COMPLEX_TYPE_SIMPLE_CONTENT |
static int |
PARTICLE_CHOICE_UNBOUNDED |
static int |
PARTICLE_SEQUENCE |
static int |
SIMPLE_TYPE_SIMPLE_CONTENT |
public static final int SIMPLE_TYPE_SIMPLE_CONTENT
public static final int COMPLEX_TYPE_SIMPLE_CONTENT
public static final int COMPLEX_TYPE_COMPLEX_CONTENT
public static final int COMPLEX_TYPE_MIXED_CONTENT
public static final int COMPLEX_TYPE_EMPTY_CONTENT
public static final int PARTICLE_SEQUENCE
public static final int PARTICLE_CHOICE_UNBOUNDED
public static Type createUnnamedType(int contentType)
public QName getName()
public void setName(QName name)
public int getContentType()
public void setContentType(int kind)
kind
- 4 kinds:
SIMPLE_TYPE_SIMPLE_CONTENT // ie no atts, no elems, just text
COMPLEX_TYPE_SIMPLE_CONTENT // ie atts*, no elems, text* - simple type extension
COMPLEX_TYPE_COMPLEX_CONTENT // ie atts*, elems, no text
COMPLEX_TYPE_MIXED_CONTENT // ie atts*, elems, text
COMPLEX_TYPE_EMPTY_CONTENT // no elems, no text, just attspublic List getElements()
public void addElement(Element element)
public void setElements(List elements)
public List getAttributes()
public void addAttribute(Attribute attribute)
public boolean isComplexType()
public boolean hasSimpleContent()
public int getTopParticleForComplexOrMixedContent()
public void setTopParticleForComplexOrMixedContent(int topParticleForComplexOrMixedContent)
topParticleForComplexOrMixedContent
- PARTICLE_SEQUENCE or PARTICLE_CHOICE_UNBOUNDEDpublic boolean isGlobal()
public void setGlobal(boolean isGlobal)
public Type getExtensionType()
public void setExtensionType(Type extendedType)
public List getEnumerationValues()
public List getEnumerationQNames()
public boolean isEnumeration()
public boolean isQNameEnumeration()
public void closeEnumeration()
public void addAllEnumerationsFrom(Type from)
Copyright © 2010 - 2020 Adobe. All Rights Reserved