|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.AttributeDefinition
public class AttributeDefinition
Name: AttributeDefinition
Description: A class for attribute definitions.
Field Summary | |
---|---|
static int |
TYPE_BOOLEAN
Constant for boolean attribute type. |
static int |
TYPE_BORDER
Constant for border attribute type. |
static int |
TYPE_COLOR
Constant for color attribute type. |
static int |
TYPE_DIMENSION
Constant for float attribute type. |
static int |
TYPE_ENUM
Constant for enumeration attribute type. |
static int |
TYPE_FLOAT
Constant for float attribute type. |
static int |
TYPE_FONT_FAMILY
Constant for font family attribute type. |
static int |
TYPE_FONT_STYLE
Constant for font style attribute type. |
static int |
TYPE_HORIZONTAL_ALIGNMENT
Constant for horizontal alignment attribute type. |
static int |
TYPE_INT
Constant for integer attribute type. |
static int |
TYPE_NAME
Constant for name attribute type. |
static int |
TYPE_PAGE_SIZE
Constant for page size attribute type. |
static int |
TYPE_STRING
Constant for string attribute type. |
static int |
TYPE_VERTICAL_ALIGNMENT
Constant for vertical alignment attribute type. |
Constructor Summary | |
---|---|
AttributeDefinition(String name,
int type,
boolean required,
String description)
Constructs a AttributeDefinition instance with specific arguments. |
|
AttributeDefinition(String name,
int type,
boolean required,
String description,
String deprecation)
Constructs a AttributeDefinition instance with specific arguments. |
|
AttributeDefinition(String name,
int type,
boolean required,
String description,
String[] aliases)
Constructs a AttributeDefinition instance with specific arguments. |
|
AttributeDefinition(String name,
String[] possibleValues,
boolean required,
String description)
Constructs a AttributeDefinition instance with specific arguments. |
|
AttributeDefinition(String name,
String[] possibleValues,
boolean required,
String description,
String deprecation)
Constructs a AttributeDefinition instance with specific arguments. |
Method Summary | |
---|---|
AttributeDefinition |
addAlias(String alias)
Adds the given alias to the alias set. |
AttributeDefinition |
addAliases(String[] aliases)
Adds the given aliases to the alias set. |
boolean |
checkAlias(String alias)
Checks whether or not the given name is a registered alias. |
AttributeDefinition |
cloneAttrDef()
Creates a clone from the current instance. |
AttributeDefinition |
cloneAttrDef(String description)
Creates a clone from the current instance. |
Collection |
getAliases()
Gets an iterator for the alias set. |
String |
getDeprecation()
Getter method for the the property deprecation. |
String |
getDescription()
Gets the attribute's description. |
String |
getName()
Gets the attribute's name. |
String[] |
getPossibleValues()
Gets the list of possible values for the attribute. |
int |
getType()
Gets the attribute's type. |
boolean |
isRequired()
Gets the attribute's required flag. |
AttributeDefinition |
setDeprecation(String deprecation)
Setter method for the the property deprecation. |
AttributeDefinition |
setRequired(boolean required)
Sets the attribute's required flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_INT
public static final int TYPE_FLOAT
public static final int TYPE_BOOLEAN
public static final int TYPE_STRING
public static final int TYPE_COLOR
public static final int TYPE_BORDER
public static final int TYPE_HORIZONTAL_ALIGNMENT
public static final int TYPE_VERTICAL_ALIGNMENT
public static final int TYPE_PAGE_SIZE
public static final int TYPE_FONT_FAMILY
public static final int TYPE_FONT_STYLE
public static final int TYPE_NAME
public static final int TYPE_ENUM
public static final int TYPE_DIMENSION
Constructor Detail |
---|
public AttributeDefinition(String name, int type, boolean required, String description)
name
- The attribute name.type
- The attribute typerequired
- The required flag.description
- The attribute description.public AttributeDefinition(String name, int type, boolean required, String description, String[] aliases)
name
- The attribute name.type
- The attribute typerequired
- The required flag.description
- The attribute description.aliases
- The aliases to support.public AttributeDefinition(String name, int type, boolean required, String description, String deprecation)
name
- The attribute name.type
- The attribute typerequired
- The required flag.description
- The attribute description.deprecation
- The deprecation message.public AttributeDefinition(String name, String[] possibleValues, boolean required, String description)
name
- The attribute name.possibleValues
- The enumeration values.required
- The required flag.description
- The attribute description.public AttributeDefinition(String name, String[] possibleValues, boolean required, String description, String deprecation)
name
- The attribute name.possibleValues
- The enumeration values.required
- The required flag.description
- The attribute description.deprecation
- The deprecation message.Method Detail |
---|
public String getName()
public int getType()
public boolean isRequired()
public AttributeDefinition setRequired(boolean required)
required
- true, if the attribute is required, else false.
public String getDescription()
public AttributeDefinition setDeprecation(String deprecation)
deprecation
- The value to set for the property deprecation.
public String getDeprecation()
public String[] getPossibleValues()
public AttributeDefinition addAliases(String[] aliases)
aliases
- The aliases to add.
public AttributeDefinition addAlias(String alias)
alias
- The alias to add.
public boolean checkAlias(String alias)
alias
- The alias to check.
public Collection getAliases()
public AttributeDefinition cloneAttrDef()
public AttributeDefinition cloneAttrDef(String description)
description
- The description to set for the clone.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |