|
||||||||||
| 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.PropertyAttributes
public class PropertyAttributes
Model component for property attribute group in binding definition.
| Field Summary | |
|---|---|
static int |
OPTIONAL_IN_USAGE
|
static int |
OPTIONAL_OUT_USAGE
|
static int |
OPTIONAL_USAGE
|
static int |
REQUIRED_USAGE
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
| Constructor Summary | |
|---|---|
PropertyAttributes()
|
|
| Method Summary | |
|---|---|
String |
getDeclaredType()
Get declared type name. |
IClassItem |
getField()
Get field information. |
String |
getFieldName()
Get field name. |
IClassItem |
getFlag()
Get flag method information. |
String |
getFlagName()
Get flag method name. |
IClassItem |
getGet()
Get get method information. |
String |
getGetName()
Get get method name. |
IClass |
getGetType()
Get type for value loaded to stack. |
IClassItem |
getSet()
Get set method information. |
String |
getSetName()
Get set method name. |
IClass |
getSetType()
Get type for value stored from stack. |
IClassItem |
getTest()
Get test method information. |
String |
getTestName()
Get test method name. |
IClass |
getType()
Get type information. |
int |
getUsage()
Get usage value. |
String |
getUsageName()
Get usage name. |
boolean |
hasProperty()
Check if property is defined. |
boolean |
isFlagOnly()
Check if property consists only of flag. |
boolean |
isImplicit()
Check if empty property definition. |
void |
prevalidate(ValidationContext vctx)
Prevalidate attribute information. |
void |
setDeclaredType(String type)
Set declared type name. |
void |
setFieldName(String field)
Set field name. |
void |
setFlagName(String flag)
Set flag method name. |
void |
setGetName(String get)
Set get method name. |
void |
setSetName(String set)
Set set method name. |
void |
setTestName(String test)
Set test method name. |
void |
setUsage(int use)
Set usage value. |
void |
setUsageName(String name)
Set usage name. |
| 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 REQUIRED_USAGE
public static final int OPTIONAL_USAGE
public static final int OPTIONAL_IN_USAGE
public static final int OPTIONAL_OUT_USAGE
| Constructor Detail |
|---|
public PropertyAttributes()
| Method Detail |
|---|
public String getUsageName()
public int getUsage()
prevalidate(ValidationContext).
public void setUsageName(String name)
name - usage namepublic void setUsage(int use)
use - valuepublic boolean hasProperty()
prevalidate(ValidationContext).
true if property defined, false if notpublic String getDeclaredType()
null if none)public void setDeclaredType(String type)
type - declared type name (or null if none)public String getFieldName()
null if none)public IClassItem getField()
prevalidate(ValidationContext).
null if none)public void setFieldName(String field)
field - field name (or null if none)public String getTestName()
null if none)public IClassItem getTest()
prevalidate(ValidationContext).
null if none)public void setTestName(String test)
test - test method name (or null if none)public String getFlagName()
null if none)public IClassItem getFlag()
prevalidate(ValidationContext).
null if none)public void setFlagName(String flag)
flag - flag method name (or null if none)public String getGetName()
null if none)public IClassItem getGet()
prevalidate(ValidationContext).
null if none)public IClass getGetType()
prevalidate(ValidationContext).
null if none)public void setGetName(String get)
get - get method name (or null if none)public String getSetName()
null if none)public IClassItem getSet()
prevalidate(ValidationContext).
null if none)public IClass getSetType()
prevalidate(ValidationContext).
null if none)public void setSetName(String set)
set - set method name (or null if none)public IClass getType()
prevalidate(ValidationContext).
null if none)public boolean isImplicit()
true if implicit property, false if notpublic boolean isFlagOnly()
true if flag property, false if notpublic 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 | |||||||||