|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ws4d.java.schema.NamedObject
org.ws4d.java.schema.Type
public abstract class Type
Abstract class for object representation of XML Schema types.
This abstract class contains the implementation of attributes and attributes groups.
Field Summary |
---|
Fields inherited from interface org.ws4d.java.schema.Any |
---|
ATTRIBUTE_NAME, ATTRIBUTE_TYPE, ATTRIBUTE_VALUE_FALSE, ATTRIBUTE_VALUE_TRUE, TAG_ANY, TAG_ANYATTRIBUTE |
Method Summary | |
---|---|
void |
addAttribute(Attribute a)
Adds an attribute to this type. |
void |
addAttributeGroup(AttributeGroup g)
Adds an attribute group to this type. |
Iterator |
allAttributes()
Returns the attributes for this type, even from attribute groups. |
void |
allowAnyAttribute()
This will add the possibility to add any attribute from other schema to this type. |
Iterator |
attributeGroups()
Returns the attribute groups for this type. |
Iterator |
attributes()
Returns the attributes for this type. |
void |
denyAnyAttribute()
This will remove the possibility to add any attribute from other schema to this type. |
Attribute |
getAttribute(QName name)
Returns an attribute with matching qualified name. |
int |
getAttributeCount()
Returns the number of attributes for this type. |
AttributeGroup |
getAttributeGroup(QName name)
Returns an attribute group by qualified name. |
int |
getAttributeGroupCount()
Returns the amount of attribute groups for this type. |
Iterator |
getKownSubtypes()
Returns an iterator which contains all known types extending this type. |
static int |
getTypeCount()
Returns the number of created types. |
boolean |
hasAnyAttribute()
Returns whether this type can contain attributes not defined by the schema. |
boolean |
hasAttributeGroups()
Returns true if the type contains attribute groups,
false otherwise. |
boolean |
hasAttributes()
Returns true if the type contains attributes,
false otherwise. |
boolean |
isComplexType()
|
Methods inherited from class org.ws4d.java.schema.NamedObject |
---|
checkNamespace, equals, getName, getParentSchema, hashCode, isAbstract, setAbstract, setName, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ws4d.java.schema.Any |
---|
getSchemaIdentifier |
Method Detail |
---|
public static int getTypeCount()
Use this for debug purposes.
public boolean isComplexType()
public Iterator getKownSubtypes()
Type
objects).public boolean hasAttributes()
true
if the type contains attributes,
false
otherwise.
true
if the type contains attributes,
false
otherwise.public boolean hasAttributeGroups()
true
if the type contains attribute groups,
false
otherwise.
true
if the type contains attribute groups,
false
otherwise.public void addAttribute(Attribute a)
a
- the attribute to add.public Attribute getAttribute(QName name)
name
- the qualified name for the attribute.
public int getAttributeCount()
public Iterator attributes()
public void addAttributeGroup(AttributeGroup g)
g
- the attribute group to add.public AttributeGroup getAttributeGroup(QName name)
name
- the qualified name for the attribute group.
public int getAttributeGroupCount()
public Iterator attributeGroups()
public Iterator allAttributes()
public boolean hasAnyAttribute()
true
if any attribute can be added to this type,
false
otherwise.public void allowAnyAttribute()
public void denyAnyAttribute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |