public class PropertyAttributes extends AttributeBase
| Type | Property and Description |
|---|---|
boolean |
has
Check if property is defined.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
PropertyAttributes() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
validatepublic boolean hasProperty
prevalidate(ValidationContext).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
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).public 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)
AttributeBaseprevalidate in class AttributeBasevctx - validation contextCopyright © 2005–2016 jibx.org. All rights reserved.