public class SchemaAnnotationImpl extends Object implements SchemaAnnotation
SchemaAnnotation.AttributeSchemaComponent.RefANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE| Modifier and Type | Method and Description |
|---|---|
static 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) |
XmlObject[] |
getApplicationInformation()
Retrieves all application information items from this annotation
|
SchemaAnnotation.Attribute[] |
getAttributes()
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
|
SchemaComponent.Ref |
getComponentRef()
Used for on-demand loading of schema components.
|
int |
getComponentType()
Returns the type code for the schema object, either
SchemaComponent.TYPE,
SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP,
SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION. |
QName |
getName()
The name of the schema component
|
String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
SchemaTypeSystem |
getTypeSystem()
Returns the typesystem within which this component definition resides
|
XmlObject[] |
getUserInformation()
Retrieves all document information items from this annotation
|
void |
setFilename(String filename) |
public void setFilename(String filename)
public String getSourceName()
SchemaComponentSchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName in interface SchemaComponentpublic XmlObject[] getApplicationInformation()
SchemaAnnotationgetApplicationInformation in interface SchemaAnnotationpublic XmlObject[] getUserInformation()
SchemaAnnotationgetUserInformation in interface SchemaAnnotationpublic SchemaAnnotation.Attribute[] getAttributes()
SchemaAnnotationgetAttributes in interface SchemaAnnotationpublic int getComponentType()
SchemaComponentSchemaComponent.TYPE,
SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP,
SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION.getComponentType in interface SchemaComponentpublic SchemaTypeSystem getTypeSystem()
SchemaComponentgetTypeSystem in interface SchemaComponentpublic QName getName()
SchemaComponentgetName in interface SchemaComponentpublic SchemaComponent.Ref getComponentRef()
SchemaComponentgetComponentRef in interface SchemaComponentpublic static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, Annotated elem)
public static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, XmlObject elem, AnnotationDocument.Annotation ann)