|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.schema.DisplayContainer
com.infoengine.schema.Attribute
Represents attribute schema
Field Summary | |
private boolean |
isEditable
|
private boolean |
isUnbounded
|
private int |
maxOccurs
|
private int |
minOccurs
|
private String |
name
|
private SchemaObject |
schema
|
Fields inherited from class com.infoengine.schema.DisplayContainer |
|
Constructor Summary | |
Attribute()
|
Method Summary | |
boolean |
getIsEditable()
Get the isEditable property value |
boolean |
getIsUnbounded()
Get the isUnbounded property value |
int |
getMaxOccurs()
Get the maximum number of times this attribute may occur. |
int |
getMinOccurs()
Get the minimum number of times this attribute must occur. |
String |
getName()
Get this attribute's name. |
SchemaObject |
getSchema()
Get the schema object associated with this attribute. |
Type |
getType()
Get the underlying type definition contained within the schema object |
boolean |
isEditable()
Get the isEditable property value |
boolean |
isMultivalued()
maxOccurs > 1 |
boolean |
isRequired()
minOccurs > 0 |
boolean |
isUnbounded()
Get the isUnbounded property value |
void |
setIsEditable(boolean b)
Set the property value determining if this attribute should be allowed to be edited or not. |
void |
setIsUnbounded(boolean b)
Set the boolean property determining if the maximum number of times this attribute may occur is infinite. |
void |
setMaxOccurs(int max)
Set the maximum number of times this attribute may occur. |
void |
setMinOccurs(int min)
Set the minimum number of times this attribute must occur. |
void |
setName(String name)
Set this attribute's name. |
void |
setSchema(SchemaObject so)
Set the schema object associated with this attribute. |
Methods inherited from class com.infoengine.schema.DisplayContainer |
addDisplayValue, getDisplays, getDisplays, getDisplayString, getDisplayValue, getIds, removeDisplayValue, setDisplays, setDisplays, setDisplayString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String name
private int minOccurs
private int maxOccurs
private boolean isUnbounded
private boolean isEditable
private SchemaObject schema
Constructor Detail |
public Attribute()
Method Detail |
public void setName(String name)
name
- new attribute namepublic String getName()
public void setMinOccurs(int min)
min
- minimum occurance valueisRequired()
public int getMinOccurs()
isRequired()
public void setMaxOccurs(int max)
max
- maximum occurance valuesetIsUnbounded(boolean)
,
getIsUnbounded()
,
isUnbounded()
,
isMultivalued()
public int getMaxOccurs()
setIsUnbounded(boolean)
,
getIsUnbounded()
,
isUnbounded()
,
isMultivalued()
public void setIsUnbounded(boolean b)
b
- new isUnbounded property valuepublic boolean getIsUnbounded()
public boolean isUnbounded()
public void setIsEditable(boolean b)
b
- new isEditable property valuepublic boolean getIsEditable()
public boolean isEditable()
public boolean isRequired()
setMinOccurs(int)
,
getMinOccurs()
public boolean isMultivalued()
setMaxOccurs(int)
,
getMaxOccurs()
public void setSchema(SchemaObject so)
so
- the schema objectSchemaObject
public SchemaObject getSchema()
SchemaObject
public Type getType()
getSchema()
,
Type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |