Class Type
java.lang.Object
org.apache.xmlbeans.impl.inst2xsd.util.Type
public class Type extends Object
- Author:
- Cezar Andrei (cezar.andrei at bea.com) Date: Jul 16, 2004
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
Type()
-
Method Summary
-
Field Details
-
SIMPLE_TYPE_SIMPLE_CONTENT
public static final int SIMPLE_TYPE_SIMPLE_CONTENT- See Also:
- Constant Field Values
-
COMPLEX_TYPE_SIMPLE_CONTENT
public static final int COMPLEX_TYPE_SIMPLE_CONTENT- See Also:
- Constant Field Values
-
COMPLEX_TYPE_COMPLEX_CONTENT
public static final int COMPLEX_TYPE_COMPLEX_CONTENT- See Also:
- Constant Field Values
-
COMPLEX_TYPE_MIXED_CONTENT
public static final int COMPLEX_TYPE_MIXED_CONTENT- See Also:
- Constant Field Values
-
COMPLEX_TYPE_EMPTY_CONTENT
public static final int COMPLEX_TYPE_EMPTY_CONTENT- See Also:
- Constant Field Values
-
PARTICLE_SEQUENCE
public static final int PARTICLE_SEQUENCE- See Also:
- Constant Field Values
-
PARTICLE_CHOICE_UNBOUNDED
public static final int PARTICLE_CHOICE_UNBOUNDED- See Also:
- Constant Field Values
-
-
Constructor Details
-
Type
protected Type()
-
-
Method Details
-
createNamedType
-
createUnnamedType
-
getName
-
setName
-
getContentType
public int getContentType()- Returns:
- 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 atts
-
setContentType
public void setContentType(int kind)- Parameters:
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 atts
-
getElements
-
addElement
-
setElements
-
getAttributes
-
addAttribute
-
getAttribute
-
isComplexType
public boolean isComplexType() -
hasSimpleContent
public boolean hasSimpleContent() -
getTopParticleForComplexOrMixedContent
public int getTopParticleForComplexOrMixedContent()- Returns:
- PARTICLE_SEQUENCE or PARTICLE_CHOICE_UNBOUNDED
-
setTopParticleForComplexOrMixedContent
public void setTopParticleForComplexOrMixedContent(int topParticleForComplexOrMixedContent)- Parameters:
topParticleForComplexOrMixedContent
- PARTICLE_SEQUENCE or PARTICLE_CHOICE_UNBOUNDED
-
isGlobal
public boolean isGlobal() -
setGlobal
public void setGlobal(boolean isGlobal) -
getExtensionType
-
setExtensionType
-
getEnumerationValues
-
getEnumerationQNames
-
addEnumerationValue
-
isEnumeration
public boolean isEnumeration() -
isQNameEnumeration
public boolean isQNameEnumeration() -
closeEnumeration
public void closeEnumeration() -
toString
-
addAllEnumerationsFrom
-