public class AppInfo extends AnnotationItem implements PropertyHolder
AnnotationItem
,
Serialized FormANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
Constructor and Description |
---|
AppInfo()
Creates a new AppInfo
|
Modifier and Type | Method and Description |
---|---|
void |
addNature(String nature)
Adds a specified nature.
|
Object |
getProperty(String name)
Get a property by its name.
|
short |
getStructureType()
Returns the type of this Schema Structure
|
boolean |
hasNature(String nature)
Checks if a specified nature has been added.
|
void |
setProperty(String name,
Object value)
Set a property specified by the name to the passed value.
|
add, getContent, getObjects, getSource, remove, setSource, validate
public short getStructureType()
getStructureType
in class AnnotationItem
public Object getProperty(String name)
PropertyHolder
getProperty
in interface PropertyHolder
name
- of the propertygetProperty(java.lang.String)
public void setProperty(String name, Object value)
PropertyHolder
setProperty
in interface PropertyHolder
name
- of the propertyvalue
- of the propertysetProperty(java.lang.String, java.lang.Object)
public void addNature(String nature)
NatureExtendable
addNature
in interface NatureExtendable
nature
- ID of the NatureaddNature(java.lang.String)
public boolean hasNature(String nature)
NatureExtendable
hasNature
in interface NatureExtendable
nature
- ID of the NaturehasNature(java.lang.String)
Copyright © 2024. All rights reserved.