public class StringAttributes extends AttributeBase
| Modifier and Type | Field and Description |
|---|---|
static int |
COLLAPSE_WHITESPACE |
static int |
PRESERVE_WHITESPACE |
static int |
REPLACE_WHITESPACE |
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
static org.jibx.runtime.EnumSet |
s_whitespaceEnum |
static int |
TRIM_WHITESPACE |
| Constructor and Description |
|---|
StringAttributes()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
org.jibx.runtime.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(org.jibx.runtime.QName qname)
Set format qualified name.
|
void |
setSerializerName(String name)
Set serializer method name.
|
void |
setType(IClass type)
Set value type.
|
validatepublic 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 org.jibx.runtime.EnumSet s_whitespaceEnum
public void setType(IClass type)
type - value typepublic IClass getType()
public String getFormatName()
public void setFormatName(String name)
name - referenced base formatpublic org.jibx.runtime.QName getFormatQName()
null if none)public void setFormatQName(org.jibx.runtime.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)
AttributeBaseprevalidate in class AttributeBasevctx - validation contextCopyright © 2005–2016 jibx.org. All rights reserved.