public static class Schema.Attribute
extends java.lang.Object
| Constructor and Description |
|---|
Attribute()
Create an empty attribute.
|
Attribute(java.lang.String name)
Create a STRING attribute with the given name.
|
Attribute(java.lang.String name,
Schema.Type type)
Create a single-valued attribute with the given name and type.
|
Attribute(java.lang.String name,
Schema.Type type,
boolean multi)
Create a multi-valued attribute with the given name and type.
|
Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size)
Create a single-valued attribute with the given name, type, and size.
|
Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi)
Create an attribute with the given properties.
|
Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi,
java.lang.String schemaObjectType)
Create an attribute with give properties
|
Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi,
java.lang.String schemaObjectType,
java.lang.String description)
Create an attribute with given properties
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Get long description of attribute
|
java.lang.String |
getName()
Return the name of the attribute.
|
java.lang.String |
getObjectType() |
java.lang.String |
getSchemaObjectType() |
java.lang.Integer |
getSize()
Return the size of the attribute (for example - length) if pertinent, or null
otherwise.
|
Schema.Type |
getType()
Return the type of the attribute.
|
boolean |
isEntitlement()
A flag to indicate if an attribute is an
entitlement.
|
boolean |
isManaged()
Returns a boolean indicating that the attribute is managed.
|
boolean |
isMulti()
Return whether this attribute is multi-valued.
|
void |
setDescription(java.lang.String description)
Sets description of attribute
|
void |
setEntitlement(boolean entitlement)
Sets the is entitlement flag.
|
void |
setManaged(boolean managed)
Sets the is entitlement flag.
|
void |
setMulti(boolean b) |
void |
setName(java.lang.String s)
Set the name of the attribute.
|
void |
setObjectType(java.lang.String s)
Set the schema name of the objects referenced
by this attribute.
|
void |
setSchemaObjectType(java.lang.String schemaObjectType)
Set schemaObjectType of attribute
|
void |
setSize(java.lang.Integer i)
Set the size of the attribute.
|
void |
setType(Schema.Type t)
Set the type of the attribute.
|
public Attribute()
public Attribute(java.lang.String name)
public Attribute(java.lang.String name,
Schema.Type type)
public Attribute(java.lang.String name,
Schema.Type type,
boolean multi)
public Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size)
public Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi)
public Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi,
java.lang.String schemaObjectType)
name - of attributetype - Type of attributesize - of attributemulti - boolean flag to indicate whether is multi-valued or notschemaObjectType - is used in case of multi-group schemapublic Attribute(java.lang.String name,
Schema.Type type,
java.lang.Integer size,
boolean multi,
java.lang.String schemaObjectType,
java.lang.String description)
name - of attributetype - Type of attributesize - of attributemulti - boolean flag to indicate whether is multi-valued or notschemaObjectType - is used in case of multi-group schemadescription - Optional long description for the attribute.public java.lang.String getName()
public void setName(java.lang.String s)
public Schema.Type getType()
public void setType(Schema.Type t)
public java.lang.Integer getSize()
public void setSize(java.lang.Integer i)
public boolean isMulti()
public void setMulti(boolean b)
public java.lang.String getObjectType()
public void setObjectType(java.lang.String s)
public java.lang.String getSchemaObjectType()
public void setSchemaObjectType(java.lang.String schemaObjectType)
public boolean isManaged()
public void setManaged(boolean managed)
public boolean isEntitlement()
public void setEntitlement(boolean entitlement)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)