|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.AttributeBase
org.jibx.binding.model.StringAttributes
public class StringAttributes
Model component for string attribute group in binding definition.
| Field Summary | |
|---|---|
static int |
COLLAPSE_WHITESPACE
|
static int |
PRESERVE_WHITESPACE
|
static int |
REPLACE_WHITESPACE
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
static EnumSet |
s_whitespaceEnum
|
static int |
TRIM_WHITESPACE
|
| Constructor Summary | |
|---|---|
StringAttributes()
Default constructor. |
|
| Method Summary | |
|---|---|
FormatElement |
getBaseFormat()
Get base format information. |
Object |
getDefault()
Get default value. |
String |
getDefaultName()
Get whitespace handling type name. |
String |
getDefaultText()
Get default value text. |
IClassItem |
getDeserializer()
Get deserializer method information. |
String |
getDeserializerName()
Get deserializer name. |
IClassItem |
getEnumValue()
Get enum value method information. |
String |
getEnumValueName()
Get enum value method name. |
String |
getFormatName()
Get base format name. |
QName |
getFormatQName()
Get format qualified name. |
IClassItem |
getSerializer()
Get serializer method information. |
String |
getSerializerName()
Get serializer name. |
IClass |
getType()
Get value type. |
void |
prevalidate(ValidationContext vctx)
Prevalidate attribute information. |
void |
setDefaultName(String name)
Set whitespace handling type name. |
void |
setDefaultText(String value)
Set default value text. |
void |
setDeserializerName(String name)
Set deserializer method name. |
void |
setEnumValueName(String name)
Set enum value method name. |
void |
setFormatName(String name)
Set base format name. |
void |
setFormatQName(QName qname)
Set format qualified name. |
void |
setSerializerName(String name)
Set serializer method name. |
void |
setType(IClass type)
Set value type. |
| Methods inherited from class org.jibx.binding.model.AttributeBase |
|---|
validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringArray s_allowedAttributes
public static final int PRESERVE_WHITESPACE
public static final int REPLACE_WHITESPACE
public static final int COLLAPSE_WHITESPACE
public static final int TRIM_WHITESPACE
public static final EnumSet s_whitespaceEnum
| Constructor Detail |
|---|
public StringAttributes()
| Method Detail |
|---|
public void setType(IClass type)
type - value typepublic IClass getType()
public String getFormatName()
public void setFormatName(String name)
name - referenced base formatpublic QName getFormatQName()
null if none)public void setFormatQName(QName qname)
qname - format qualified name (null if none)public String getDefaultText()
public Object getDefault()
AttributeBase.validate(ValidationContext).
public void setDefaultText(String value)
value - default value textpublic String getSerializerName()
null if none)public IClassItem getSerializer()
AttributeBase.validate(ValidationContext).
null if none)public void setSerializerName(String name)
name - fully qualified class and method name for serializerpublic void setDefaultName(String name)
name - whitespace handling typepublic String getDefaultName()
public String getDeserializerName()
null if none)public IClassItem getDeserializer()
AttributeBase.validate(ValidationContext).
null if none)public void setDeserializerName(String name)
name - fully qualified class and method name for deserializerpublic String getEnumValueName()
null if none)public IClassItem getEnumValue()
AttributeBase.validate(ValidationContext).
null if none)public void setEnumValueName(String name)
name - enum value method name (null if none)public FormatElement getBaseFormat()
AttributeBase.validate(ValidationContext).
null if none)public void prevalidate(ValidationContext vctx)
AttributeBase
prevalidate in class AttributeBasevctx - validation context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||