|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nrl.parser.model.AbstractAttribute
net.sourceforge.nrl.parser.model.xsd.XSDAttribute
public class XSDAttribute
An NRL attribute created from a schema sub-element or attribute. Note again, "attribute" refers to how NRL sees an attribute.
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.model.IAttribute |
---|
UNBOUNDED |
Constructor Summary | |
---|---|
XSDAttribute(String name)
|
|
XSDAttribute(org.eclipse.xsd.XSDAttributeUse use)
Initialise from a schema attribute use declaration. |
|
XSDAttribute(org.eclipse.xsd.XSDElementDeclaration decl,
int minOccurs,
int maxOccurs)
Initialise from an element declaration. |
Method Summary | |
---|---|
void |
addDocumentation(String doc)
|
List<String> |
getDocumentation()
Return any documentation associated with the attribute. |
int |
getMaxOccurs()
Return the maximum number of occurrences of the attribute (0 or more). |
int |
getMinOccurs()
Return the minimum number of occurrences of the attribute (0 or more). |
String |
getTypeName()
|
boolean |
isStatic()
Returns true if the attribute is static, or if it is an enum value. |
void |
setMaxOccurs(int maxOccurs)
|
void |
setMinOccurs(int minOccurs)
|
void |
setStatic(boolean _static)
|
void |
setTypeName(String typeName)
|
void |
setXSDType(org.eclipse.xsd.XSDTypeDefinition typeDef)
|
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractAttribute |
---|
getName, getOriginalName, getOwner, getType, getUserData, isRepeating, setName, setOriginalName, setOwner, setType, setUserData |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDAttribute(String name)
public XSDAttribute(org.eclipse.xsd.XSDAttributeUse use)
use
- the attribute use declarationpublic XSDAttribute(org.eclipse.xsd.XSDElementDeclaration decl, int minOccurs, int maxOccurs)
decl
- the declarationminOccurs
- the minOccurs value in the XSD library formatmaxOccurs
- the maxOccurs value in the XSD library formatMethod Detail |
---|
public void addDocumentation(String doc)
public List<String> getDocumentation()
IAttribute
public int getMaxOccurs()
IAttribute
public int getMinOccurs()
IAttribute
public boolean isStatic()
IAttribute
public void setMaxOccurs(int maxOccurs)
public void setMinOccurs(int minOccurs)
public void setStatic(boolean _static)
public String getTypeName()
public void setTypeName(String typeName)
public void setXSDType(org.eclipse.xsd.XSDTypeDefinition typeDef)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |