Package org.exolab.castor.xml.schema
Class AppInfo
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.AnnotationItem
org.exolab.castor.xml.schema.AppInfo
- All Implemented Interfaces:
Serializable
,NatureExtendable
,PropertyHolder
A class which represents the AppInfo element
- Version:
- $Revision: 8911 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
Fields inherited from class org.exolab.castor.xml.schema.Structure
ANNOTATION, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a specified nature.getProperty
(String name) Get a property by its name.short
Returns the type of this Schema Structureboolean
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.Methods inherited from class org.exolab.castor.xml.schema.AnnotationItem
add, getContent, getObjects, getSource, remove, setSource, validate
-
Constructor Details
-
AppInfo
public AppInfo()Creates a new AppInfo
-
-
Method Details
-
getStructureType
public short getStructureType()Returns the type of this Schema Structure- Specified by:
getStructureType
in classAnnotationItem
- Returns:
- the type of this Schema Structure
-
getProperty
Description copied from interface:PropertyHolder
Get a property by its name.- Specified by:
getProperty
in interfacePropertyHolder
- Parameters:
name
- of the property- Returns:
- value of the property
-
setProperty
Description copied from interface:PropertyHolder
Set a property specified by the name to the passed value.- Specified by:
setProperty
in interfacePropertyHolder
- Parameters:
name
- of the propertyvalue
- of the property
-
addNature
Description copied from interface:NatureExtendable
Adds a specified nature.- Specified by:
addNature
in interfaceNatureExtendable
- Parameters:
nature
- ID of the Nature
-
hasNature
Description copied from interface:NatureExtendable
Checks if a specified nature has been added.- Specified by:
hasNature
in interfaceNatureExtendable
- Parameters:
nature
- ID of the Nature- Returns:
- true if the Nature ID was added.
-