Package org.apache.xmlbeans.impl.schema
Class SchemaAnnotationImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaAnnotationImpl
- All Implemented Interfaces:
SchemaAnnotation,SchemaComponent
public class SchemaAnnotationImpl extends Object implements SchemaAnnotation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaAnnotation
SchemaAnnotation.AttributeNested 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 Type Method Description static SchemaAnnotationImplgetAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, org.apache.xmlbeans.impl.xb.xsdschema.Annotated elem)static SchemaAnnotationImplgetAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, XmlObject elem, org.apache.xmlbeans.impl.xb.xsdschema.AnnotationDocument.Annotation ann)XmlObject[]getApplicationInformation()Retrieves all application information items from this annotationSchemaAnnotation.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 componentSchemaComponent.RefgetComponentRef()Used for on-demand loading of schema components.intgetComponentType()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.QNamegetName()The name of the schema componentStringgetSourceName()The name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:SchemaTypeSystemgetTypeSystem()Returns the typesystem within which this component definition residesXmlObject[]getUserInformation()Retrieves all document information items from this annotationvoidsetFilename(String filename)
-
Method Details
-
setFilename
-
getSourceName
Description copied from interface:SchemaComponentThe 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:
getSourceNamein interfaceSchemaComponent
-
getApplicationInformation
Description copied from interface:SchemaAnnotationRetrieves all application information items from this annotation- Specified by:
getApplicationInformationin interfaceSchemaAnnotation
-
getUserInformation
Description copied from interface:SchemaAnnotationRetrieves all document information items from this annotation- Specified by:
getUserInformationin interfaceSchemaAnnotation
-
getAttributes
Description copied from interface:SchemaAnnotationRetrieves 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:
getAttributesin interfaceSchemaAnnotation
-
getComponentType
public int getComponentType()Description copied from interface:SchemaComponentReturns 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:
getComponentTypein interfaceSchemaComponent
-
getTypeSystem
Description copied from interface:SchemaComponentReturns the typesystem within which this component definition resides- Specified by:
getTypeSystemin interfaceSchemaComponent
-
getName
Description copied from interface:SchemaComponentThe name of the schema component- Specified by:
getNamein interfaceSchemaComponent
-
getComponentRef
Description copied from interface:SchemaComponentUsed for on-demand loading of schema components.- Specified by:
getComponentRefin interfaceSchemaComponent
-
getAnnotation
public static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, org.apache.xmlbeans.impl.xb.xsdschema.Annotated elem) -
getAnnotation
public static SchemaAnnotationImpl getAnnotation(org.apache.xmlbeans.impl.schema.SchemaContainer c, XmlObject elem, org.apache.xmlbeans.impl.xb.xsdschema.AnnotationDocument.Annotation ann)
-