Package org.apache.cxf.javascript
Class AttributeInfo
- java.lang.Object
-
- org.apache.cxf.javascript.AttributeInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeInfoforGlobalAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute attribute, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator)Create an elementInfo that stores information about a global, named, element.static AttributeInfoforLocalItem(org.apache.ws.commons.schema.XmlSchemaObject sequenceObject, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator, QName contextName)Fill in an AttributeInfo for an attribute or anyAttribute from a sequence.org.apache.ws.commons.schema.XmlSchemaAnnotatedgetAnnotated()Return the object for the Attribute or the anyAttribute.org.apache.ws.commons.schema.XmlSchemaTypegetContainingType()StringgetDefaultValue()*StringgetFixedValue()StringgetJavascriptName()org.apache.ws.commons.schema.XmlSchemaTypegetType()StringgetXmlName()booleanisAny()booleanisAnyType()booleanisArray()booleanisGlobal()True if this describes a global, named, attribute.booleanisNillable()booleanisOptional()voidsetContainingType(org.apache.ws.commons.schema.XmlSchemaType containingType)voidsetDefaultValue(String value)voidsetFixedValue(String fixedValue)voidsetJavascriptName(String name)voidsetType(org.apache.ws.commons.schema.XmlSchemaType type)voidsetXmlName(String elementXmlName)
-
-
-
Method Detail
-
forGlobalAttribute
public static AttributeInfo forGlobalAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute attribute, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator)
Create an elementInfo that stores information about a global, named, element.- Parameters:
attribute- the elementcurrentSchema- the schema it came from.schemaCollection- the collection of all schemas.prefixAccumulator- the accumulator that assigns prefixes.- Returns:
-
forLocalItem
public static AttributeInfo forLocalItem(org.apache.ws.commons.schema.XmlSchemaObject sequenceObject, org.apache.ws.commons.schema.XmlSchema currentSchema, SchemaCollection schemaCollection, NamespacePrefixAccumulator prefixAccumulator, QName contextName)
Fill in an AttributeInfo for an attribute or anyAttribute from a sequence.- Parameters:
sequenceObject-currentSchema-schemaCollection-prefixAccumulator-contextName-- Returns:
-
getAnnotated
public org.apache.ws.commons.schema.XmlSchemaAnnotated getAnnotated()
Return the object for the Attribute or the anyAttribute.- Returns:
-
getJavascriptName
public String getJavascriptName()
- Specified by:
getJavascriptNamein interfaceItemInfo
-
setJavascriptName
public void setJavascriptName(String name)
-
getXmlName
public String getXmlName()
-
setXmlName
public void setXmlName(String elementXmlName)
-
getContainingType
public org.apache.ws.commons.schema.XmlSchemaType getContainingType()
-
setContainingType
public void setContainingType(org.apache.ws.commons.schema.XmlSchemaType containingType)
-
getType
public org.apache.ws.commons.schema.XmlSchemaType getType()
-
setType
public void setType(org.apache.ws.commons.schema.XmlSchemaType type)
-
isAnyType
public boolean isAnyType()
-
getDefaultValue
public String getDefaultValue()
*- Specified by:
getDefaultValuein interfaceItemInfo- Returns:
- Returns the defaultValue.
-
isGlobal
public boolean isGlobal()
True if this describes a global, named, attribute.- Returns:
-
getFixedValue
public String getFixedValue()
-
setFixedValue
public void setFixedValue(String fixedValue)
-
isNillable
public boolean isNillable()
- Specified by:
isNillablein interfaceItemInfo
-
isOptional
public boolean isOptional()
- Specified by:
isOptionalin interfaceItemInfo
-
setDefaultValue
public void setDefaultValue(String value)
- Specified by:
setDefaultValuein interfaceItemInfo
-
-