|
||||||
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 | |
---|---|
private static java.lang.String[] |
FLAG_METHOD_SIGNATURES
|
private static java.lang.String[] |
GET_METHOD_SIGNATURES
|
private java.lang.String |
m_declaredType
Property type name. |
private IClassItem |
m_fieldItem
Property field information. |
private java.lang.String |
m_fieldName
Property field name. |
private IClassItem |
m_flagItem
Flag method information. |
private java.lang.String |
m_flagName
Flag method name. |
private IClassItem |
m_getItem
Get method information. |
private java.lang.String |
m_getName
Get method name. |
private IClass |
m_getType
Type for value loaded on stack. |
private boolean |
m_isImplicit
Flag for no actual property definition. |
private IClassItem |
m_setItem
Set method information. |
private java.lang.String |
m_setName
Set method name. |
private IClass |
m_setType
Type for value stored from stack. |
private IClassItem |
m_testItem
Test method information. |
private java.lang.String |
m_testName
Test method name. |
private IClass |
m_type
Property type information. |
private int |
m_usage
Usage type code. |
private java.lang.String |
m_usageName
Usage name. |
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 |
private static EnumSet |
s_usageEnum
|
private static java.lang.String[] |
TEST_METHOD_SIGNATURES
|
Constructor Summary | |
---|---|
PropertyAttributes()
|
Method Summary | |
---|---|
java.lang.String |
getDeclaredType()
Get declared type name. |
IClassItem |
getField()
Get field information. |
java.lang.String |
getFieldName()
Get field name. |
IClassItem |
getFlag()
Get flag method information. |
java.lang.String |
getFlagName()
Get flag method name. |
IClassItem |
getGet()
Get get method information. |
java.lang.String |
getGetName()
Get get method name. |
IClass |
getGetType()
Get type for value loaded to stack. |
IClassItem |
getSet()
Get set method information. |
java.lang.String |
getSetName()
Get set method name. |
IClass |
getSetType()
Get type for value stored from stack. |
IClassItem |
getTest()
Get test method information. |
java.lang.String |
getTestName()
Get test method name. |
IClass |
getType()
Get type information. |
int |
getUsage()
Get usage value. |
java.lang.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(java.lang.String type)
Set declared type name. |
void |
setFieldName(java.lang.String field)
Set field name. |
void |
setFlagName(java.lang.String flag)
Set flag method name. |
void |
setGetName(java.lang.String get)
Set get method name. |
void |
setSetName(java.lang.String set)
Set set method name. |
void |
setTestName(java.lang.String test)
Set test method name. |
void |
setUsage(int use)
Set usage value. |
void |
setUsageName(java.lang.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
private static final java.lang.String[] TEST_METHOD_SIGNATURES
private static final java.lang.String[] FLAG_METHOD_SIGNATURES
private static final java.lang.String[] GET_METHOD_SIGNATURES
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
private static final EnumSet s_usageEnum
private int m_usage
private java.lang.String m_usageName
private java.lang.String m_declaredType
private java.lang.String m_fieldName
private java.lang.String m_testName
private java.lang.String m_flagName
private java.lang.String m_getName
private java.lang.String m_setName
private IClass m_getType
private IClass m_setType
private IClass m_type
private IClassItem m_fieldItem
private IClassItem m_testItem
private IClassItem m_flagItem
private IClassItem m_getItem
private IClassItem m_setItem
private boolean m_isImplicit
Constructor Detail |
---|
public PropertyAttributes()
Method Detail |
---|
public java.lang.String getUsageName()
public int getUsage()
prevalidate(ValidationContext)
.
public void setUsageName(java.lang.String name)
name
- usage namepublic void setUsage(int use)
use
- valuepublic boolean hasProperty()
prevalidate(ValidationContext)
.
true
if property defined, false
if notpublic java.lang.String getDeclaredType()
null
if none)public void setDeclaredType(java.lang.String type)
type
- declared type name (or null
if none)public java.lang.String getFieldName()
null
if none)public IClassItem getField()
prevalidate(ValidationContext)
.
null
if none)public void setFieldName(java.lang.String field)
field
- field name (or null
if none)public java.lang.String getTestName()
null
if none)public IClassItem getTest()
prevalidate(ValidationContext)
.
null
if none)public void setTestName(java.lang.String test)
test
- test method name (or null
if none)public java.lang.String getFlagName()
null
if none)public IClassItem getFlag()
prevalidate(ValidationContext)
.
null
if none)public void setFlagName(java.lang.String flag)
flag
- flag method name (or null
if none)public java.lang.String getGetName()
null
if none)public IClassItem getGet()
prevalidate(ValidationContext)
.
null
if none)public IClass getGetType()
prevalidate(ValidationContext)
.
null
if none)public void setGetName(java.lang.String get)
get
- get method name (or null
if none)public java.lang.String getSetName()
null
if none)public IClassItem getSet()
prevalidate(ValidationContext)
.
null
if none)public IClass getSetType()
prevalidate(ValidationContext)
.
null
if none)public void setSetName(java.lang.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 AttributeBase
vctx
- validation context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |