|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.admin.ns.AttributeDefinition
Default class for attribute definitions.
Objects of this type are immutable, and any extensions to this class must enforce the immutable nature.
Attributes may have lower and upper bounds associated with them. If bounds are applicable, the attribute is sized. The attribute may be hidden, indicating that any class with a hidden attribute will not return a value for such an attribute. If the attribute may contain only a single value it is said to be a single-valued attribute. The attribute may be read-only, indicating that values associated with the attribute cannot be modified.
Field Summary | |
protected long |
lowerBound
Lower bound for the attribute. |
protected java.lang.String |
name
Name of the attribute. |
protected boolean |
sized
Flag to indicate if the attribute is sized or not. |
protected Syntax |
syntax
Syntax of the attribute. |
protected long |
upperBound
Upper bound for the attribute. |
Constructor Summary | |
AttributeDefinition(java.lang.String attrName,
Syntax syntax)
Constructor that assumes the attribute is not sized. |
|
AttributeDefinition(java.lang.String attrName,
Syntax syntax,
long lowerBound,
long upperBound)
Constructor that assumes the attribute is sized. |
Method Summary | |
abstract ObjectAttribute |
createAttribute()
Abstract factory method for creating ObjectAttributes. |
boolean |
equals(java.lang.Object obj)
Checks to see if this definition is equal to another. |
long |
getLowerBound()
Returns the lower bound of the attribute. |
java.lang.String |
getName()
Returns the name of this attribute definition. |
Syntax |
getSyntax()
Returns the Syntax of this attribute definition. |
long |
getUpperBound()
Returns the upper bound of the attribute. |
boolean |
isAberrant()
Check to see if the attribute behaves in some atypical manner. |
abstract boolean |
isHidden()
Checks to see if an attribute is hidden. |
abstract boolean |
isReadOnly()
Checks to see if an attribute is read-only. |
abstract boolean |
isSingleValued()
Check to see if attribute is single-valued. |
boolean |
isSized()
Checks to see if the attribute is sized. |
java.lang.String |
toString()
Converts this attribute definition to a String. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String name
protected Syntax syntax
protected boolean sized
protected long lowerBound
The bound should be inclusive. It should also be zero if the attribute is not sized.
protected long upperBound
The bound should be inclusive. It should also be zero if the attribute is not sized.
Constructor Detail |
public AttributeDefinition(java.lang.String attrName, Syntax syntax)
syntax
- Syntax for the attribute.attrName
- Name of the attribute.public AttributeDefinition(java.lang.String attrName, Syntax syntax, long lowerBound, long upperBound)
attrName
- Name of the attribute.syntax
- Syntax for the attribute.lowerBound
- Lower bound for values associated with this attribute.upperBound
- Upper bound for values associated with this attribute.Method Detail |
public java.lang.String getName()
public java.lang.String toString()
getName().
public Syntax getSyntax()
public boolean isSized()
public long getLowerBound()
public long getUpperBound()
public abstract ObjectAttribute createAttribute()
This method is used to create a brand new Attribute. The returned ObjectAttribute should contain the necessary ValueComponents so that it is considered fully, but minimally, constructed.
public boolean equals(java.lang.Object obj)
obj
- The other AttributeDefinition to compare this to.public abstract boolean isHidden()
public abstract boolean isReadOnly()
public abstract boolean isSingleValued()
public boolean isAberrant()
The behavior of attributes which return true are atypical and should not be handled like normal attributes. Most common are attributes that may be modified but are handled in a namespace specific manner. Most attributes should return false which is the default.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |