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
Modifier and TypeFieldDescriptionstatic final XSFunction
An instance that gets names in the default locale. -
Constructor Summary
ConstructorDescriptionNameGetter
(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 String
get
(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:
annotation
in interfaceXSFunction<String>
-
attGroupDecl
- Specified by:
attGroupDecl
in interfaceXSFunction<String>
-
attributeUse
- Specified by:
attributeUse
in interfaceXSFunction<String>
-
attributeDecl
- Specified by:
attributeDecl
in interfaceXSFunction<String>
-
complexType
- Specified by:
complexType
in interfaceXSFunction<String>
-
schema
- Specified by:
schema
in interfaceXSFunction<String>
-
facet
- Specified by:
facet
in interfaceXSFunction<String>
-
simpleType
- Specified by:
simpleType
in interfaceXSContentTypeFunction<String>
-
particle
- Specified by:
particle
in interfaceXSContentTypeFunction<String>
-
empty
- Specified by:
empty
in interfaceXSContentTypeFunction<String>
-
wildcard
- Specified by:
wildcard
in interfaceXSTermFunction<String>
-
modelGroupDecl
- Specified by:
modelGroupDecl
in interfaceXSTermFunction<String>
-
modelGroup
- Specified by:
modelGroup
in interfaceXSTermFunction<String>
-
elementDecl
- Specified by:
elementDecl
in interfaceXSTermFunction<String>
-
notation
- Specified by:
notation
in interfaceXSFunction<String>
-
identityConstraint
- Specified by:
identityConstraint
in interfaceXSFunction<String>
-
xpath
- Specified by:
xpath
in interfaceXSFunction<String>
-