Package org.apache.xmlbeans.impl.schema
Class SchemaAnnotationImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaAnnotationImpl
- All Implemented Interfaces:
SchemaAnnotation
,SchemaComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaAnnotation
SchemaAnnotation.Attribute
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaComponent
SchemaComponent.Ref
-
Field Summary
Fields inherited from interface org.apache.xmlbeans.SchemaComponent
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaAnnotationImpl
getAnnotation
(org.apache.xmlbeans.impl.schema.SchemaContainer c, Annotated elem) static SchemaAnnotationImpl
getAnnotation
(org.apache.xmlbeans.impl.schema.SchemaContainer c, XmlObject elem, AnnotationDocument.Annotation ann) Retrieves all application information items from this annotationRetrieves all attributes that are is a namespace other than http://www.w3.org/2001/XMLSchema from the annotation element and from the enclosing Schema componentUsed for on-demand loading of schema components.int
Returns the type code for the schema object, eitherSchemaComponent.TYPE
,SchemaComponent.ELEMENT
,SchemaComponent.ATTRIBUTE
,SchemaComponent.ATTRIBUTE_GROUP
,SchemaComponent.MODEL_GROUP
,SchemaComponent.IDENTITY_CONSTRAINT
, orSchemaComponent.NOTATION
.getName()
The name of the schema componentThe name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:Returns the typesystem within which this component definition residesRetrieves all document information items from this annotationvoid
setFilename
(String filename)
-
Method Details
-
setFilename
-
getSourceName
Description copied from interface:SchemaComponent
The name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
- Specified by:
getSourceName
in interfaceSchemaComponent
-
getApplicationInformation
Description copied from interface:SchemaAnnotation
Retrieves all application information items from this annotation- Specified by:
getApplicationInformation
in interfaceSchemaAnnotation
-
getUserInformation
Description copied from interface:SchemaAnnotation
Retrieves all document information items from this annotation- Specified by:
getUserInformation
in interfaceSchemaAnnotation
-
getAttributes
Description copied from interface:SchemaAnnotation
Retrieves all attributes that are is a namespace other than http://www.w3.org/2001/XMLSchema from the annotation element and from the enclosing Schema component- Specified by:
getAttributes
in interfaceSchemaAnnotation
-
getComponentType
public int getComponentType()Description copied from interface:SchemaComponent
Returns the type code for the schema object, eitherSchemaComponent.TYPE
,SchemaComponent.ELEMENT
,SchemaComponent.ATTRIBUTE
,SchemaComponent.ATTRIBUTE_GROUP
,SchemaComponent.MODEL_GROUP
,SchemaComponent.IDENTITY_CONSTRAINT
, orSchemaComponent.NOTATION
.- Specified by:
getComponentType
in interfaceSchemaComponent
-
getTypeSystem
Description copied from interface:SchemaComponent
Returns the typesystem within which this component definition resides- Specified by:
getTypeSystem
in interfaceSchemaComponent
-
getName
Description copied from interface:SchemaComponent
The name of the schema component- Specified by:
getName
in interfaceSchemaComponent
-
getComponentRef
Description copied from interface:SchemaComponent
Used for on-demand loading of schema components.- Specified by:
getComponentRef
in interfaceSchemaComponent
-
getAnnotation
public static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, Annotated elem) -
getAnnotation
public static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, XmlObject elem, AnnotationDocument.Annotation ann)
-