|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.AttributeBase
org.jibx.binding.model.NameAttributes
public class NameAttributes
Model component for name attribute group in binding definition.
| Field Summary | |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
| Constructor Summary | |
|---|---|
NameAttributes()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getName()
Get name. |
NamespaceElement |
getNamespace()
Get effective namespace definition. |
String |
getPrefix()
Get specified namespace prefix. |
String |
getUri()
Get specified namespace URI. |
int |
hashCode()
|
boolean |
isAttribute()
Get flag for an attribute name. |
void |
setIsAttribute(boolean isattr)
Set flag for an attribute name. |
void |
setName(String name)
Set name. |
void |
setPrefix(String prefix)
Set namespace prefix. |
void |
setUri(String uri)
Set namespace URI. |
void |
validate(ValidationContext vctx)
Validate attribute information. |
| Methods inherited from class org.jibx.binding.model.AttributeBase |
|---|
prevalidate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringArray s_allowedAttributes
| Constructor Detail |
|---|
public NameAttributes()
| Method Detail |
|---|
public void setIsAttribute(boolean isattr)
false) prior to validation.
isattr - flag for name represents an attributepublic boolean isAttribute()
true if an attribute, false if an
elementpublic String getName()
public void setName(String name)
name - text for namepublic String getUri()
null if not set)public void setUri(String uri)
uri - namespace URI (null if not set)public String getPrefix()
null if not set)public void setPrefix(String prefix)
prefix - namespace prefix (null if not set)public NamespaceElement getNamespace()
public void validate(ValidationContext vctx)
AttributeBaseAttributeBase.prevalidate(org.jibx.binding.model.ValidationContext) method will always be
called for every component in the binding definition before this method
is called for any component. This empty base class implementation should
be overridden by each subclass that requires validation handling.
validate in class AttributeBasevctx - validation contextpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||