Package com.sun.xml.xsom.util
Class NameGetter
java.lang.Object
com.sun.xml.xsom.util.NameGetter
- All Implemented Interfaces:
XSContentTypeFunction<String>,XSFunction<String>,XSTermFunction<String>
Gets the human-readable name of a schema component.
This is a function object that returns String.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XSFunctionAn instance that gets names in the default locale. -
Constructor Summary
ConstructorsConstructorDescriptionNameGetter(Locale _locale) Initializes a NameGetter so that it will return messages in the specified locale. -
Method Summary
Modifier and TypeMethodDescriptionannotation(XSAnnotation ann) attGroupDecl(XSAttGroupDecl decl) attributeDecl(XSAttributeDecl decl) complexType(XSComplexType type) elementDecl(XSElementDecl decl) empty(XSContentType empty) static Stringget(XSComponent comp) Gets the name of the specified component in the default locale.modelGroup(XSModelGroup group) particle(XSParticle particle) simpleType(XSSimpleType simpleType) wildcard(XSWildcard wc)
-
Field Details
-
theInstance
An instance that gets names in the default locale. This instance is provided just for convenience.
-
-
Constructor Details
-
NameGetter
Initializes a NameGetter so that it will return messages in the specified locale.
-
-
Method Details
-
get
Gets the name of the specified component in the default locale. This method is just a wrapper. -
annotation
- Specified by:
annotationin interfaceXSFunction<String>
-
attGroupDecl
- Specified by:
attGroupDeclin interfaceXSFunction<String>
-
attributeUse
- Specified by:
attributeUsein interfaceXSFunction<String>
-
attributeDecl
- Specified by:
attributeDeclin interfaceXSFunction<String>
-
complexType
- Specified by:
complexTypein interfaceXSFunction<String>
-
schema
- Specified by:
schemain interfaceXSFunction<String>
-
facet
- Specified by:
facetin interfaceXSFunction<String>
-
simpleType
- Specified by:
simpleTypein interfaceXSContentTypeFunction<String>
-
particle
- Specified by:
particlein interfaceXSContentTypeFunction<String>
-
empty
- Specified by:
emptyin interfaceXSContentTypeFunction<String>
-
wildcard
- Specified by:
wildcardin interfaceXSTermFunction<String>
-
modelGroupDecl
- Specified by:
modelGroupDeclin interfaceXSTermFunction<String>
-
modelGroup
- Specified by:
modelGroupin interfaceXSTermFunction<String>
-
elementDecl
- Specified by:
elementDeclin interfaceXSTermFunction<String>
-
notation
- Specified by:
notationin interfaceXSFunction<String>
-
identityConstraint
- Specified by:
identityConstraintin interfaceXSFunction<String>
-
xpath
- Specified by:
xpathin interfaceXSFunction<String>
-