public interface BaseProperty
| Type | Property and Description |
|---|---|
boolean |
isChoice
Gets the value of the property choiceProperty.
|
| Modifier and Type | Interface and Description |
|---|---|
static class |
BaseProperty.VetoException |
| Modifier and Type | Field and Description |
|---|---|
static int |
INSTANCE_MANDATORY_ARRAY |
static int |
INSTANCE_MANDATORY_ELT |
static int |
INSTANCE_OPTIONAL_ARRAY |
static int |
INSTANCE_OPTIONAL_ELT
Values returned by getInstanceType()
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAttributeNames()
If the property has an attribute, return all the attribute names.
|
BaseAttribute[] |
getAttributes()
If the property has an attribute, return all the attributes
definitions, as a list of BaseAttribute interfaces.
|
BaseProperty[] |
getChoiceProperties()
If this property is a choice property, returns all other choice
properties associated to this one (including this one).
|
String |
getDtdName()
Return the dtd name of the property, as it appears in the DTD file.
|
String |
getFullName() |
String |
getFullName(int index)
Returns the full path name of the property (unique String name
identifying the property for the lifetime of the graph).
|
int |
getInstanceType()
Returns the instanciation type of the property.
|
String |
getName()
Return the name of the property as it is used in the bean class.
|
BaseBean |
getParent()
Return the BaseBean for this property if there is one
|
Class |
getPropertyClass()
Return the class type of the property.
|
boolean |
hasName(String name)
Return true if the name is either equals to getName() or getDtdName()
|
boolean |
isBean()
Return true if the property is a bean (a node in the graph).
|
boolean |
isChoiceProperty()
Gets the value of the property choiceProperty.
|
boolean |
isIndexed()
Return true if the property is an indexed property.
|
boolean |
isKey()
Return true if this property matters when schema2beans compare graphs
|
boolean |
isRoot()
Return true if this is the root property
|
int |
size()
If the property is an indexed property, return the number of element
(might contain null elements).
|
static final int INSTANCE_OPTIONAL_ELT
static final int INSTANCE_MANDATORY_ELT
static final int INSTANCE_OPTIONAL_ARRAY
static final int INSTANCE_MANDATORY_ARRAY
boolean isRoot()
BaseBean getParent()
String getName()
String getDtdName()
Class getPropertyClass()
boolean isIndexed()
boolean isBean()
int size()
String[] getAttributeNames()
BaseAttribute[] getAttributes()
String getFullName(int index)
String getFullName()
int getInstanceType()
boolean isChoiceProperty()
BaseProperty[] getChoiceProperties()
boolean hasName(String name)
boolean isKey()
Copyright © 2017. All Rights Reserved.