public class NameAttributes extends AttributeBase
| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
| Constructor and Description |
|---|
NameAttributes()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
prevalidatepublic static final StringArray s_allowedAttributes
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 contextCopyright © 2005–2016 jibx.org. All rights reserved.