|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.webapp.jonasadmin.xml.xs.hardcoded.HCAttributeRestrictions
public class HCAttributeRestrictions
An implementation of HCAttributeRestrictions where the restrictions are not retrieved from the schema but hard coded inside the class.
Constructor Summary | |
---|---|
HCAttributeRestrictions(String name,
boolean optional,
String fixed)
Create a new hardcoded attribute restriction |
Method Summary | |
---|---|
String |
getFixed()
Get the fixed value for this attribute. |
String |
getName()
Return the name of the attribute. |
boolean |
isOptional()
Returns if this attribute is optional. |
void |
setFixed(String fixed)
Sets the fixed value for this attribute. |
void |
setName(String name)
Sets the name of this element. |
void |
setOptional(boolean isOptional)
Sets if this attribute is optional. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HCAttributeRestrictions(String name, boolean optional, String fixed)
name
- the name of this attributeoptional
- is this attribute optionalfixed
- the fixed value for this attributeMethod Detail |
---|
public String getFixed()
getFixed
in interface AttributeRestrictions
public void setFixed(String fixed)
setFixed
in interface AttributeRestrictions
fixed
- the fixed value for this attribute.public boolean isOptional()
isOptional
in interface AttributeRestrictions
public void setOptional(boolean isOptional)
setOptional
in interface AttributeRestrictions
isOptional
- if this attribute is optional.public String getName()
getName
in interface AttributeRestrictions
public void setName(String name)
setName
in interface AttributeRestrictions
name
- the name of this element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |