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>
public class NameGetter extends Object implements XSFunction<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
Fields Modifier and Type Field Description static XSFunctiontheInstanceAn instance that gets names in the default locale.
-
Constructor Summary
Constructors Constructor Description NameGetter(Locale _locale)Initializes a NameGetter so that it will return messages in the specified locale.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringannotation(XSAnnotation ann)StringattGroupDecl(XSAttGroupDecl decl)StringattributeDecl(XSAttributeDecl decl)StringattributeUse(XSAttributeUse use)StringcomplexType(XSComplexType type)StringelementDecl(XSElementDecl decl)Stringempty(XSContentType empty)Stringfacet(XSFacet facet)static Stringget(XSComponent comp)Gets the name of the specified component in the default locale.StringidentityConstraint(XSIdentityConstraint decl)StringmodelGroup(XSModelGroup group)StringmodelGroupDecl(XSModelGroupDecl decl)Stringnotation(XSNotation n)Stringparticle(XSParticle particle)Stringschema(XSSchema schema)StringsimpleType(XSSimpleType simpleType)Stringwildcard(XSWildcard wc)Stringxpath(XSXPath xpath)
-
-
-
Field Detail
-
theInstance
public static final XSFunction theInstance
An instance that gets names in the default locale. This instance is provided just for convenience.
-
-
Constructor Detail
-
NameGetter
public NameGetter(Locale _locale)
Initializes a NameGetter so that it will return messages in the specified locale.
-
-
Method Detail
-
get
public static String get(XSComponent comp)
Gets the name of the specified component in the default locale. This method is just a wrapper.
-
annotation
public String annotation(XSAnnotation ann)
- Specified by:
annotationin interfaceXSFunction<String>
-
attGroupDecl
public String attGroupDecl(XSAttGroupDecl decl)
- Specified by:
attGroupDeclin interfaceXSFunction<String>
-
attributeUse
public String attributeUse(XSAttributeUse use)
- Specified by:
attributeUsein interfaceXSFunction<String>
-
attributeDecl
public String attributeDecl(XSAttributeDecl decl)
- Specified by:
attributeDeclin interfaceXSFunction<String>
-
complexType
public String complexType(XSComplexType type)
- Specified by:
complexTypein interfaceXSFunction<String>
-
schema
public String schema(XSSchema schema)
- Specified by:
schemain interfaceXSFunction<String>
-
facet
public String facet(XSFacet facet)
- Specified by:
facetin interfaceXSFunction<String>
-
simpleType
public String simpleType(XSSimpleType simpleType)
- Specified by:
simpleTypein interfaceXSContentTypeFunction<String>
-
particle
public String particle(XSParticle particle)
- Specified by:
particlein interfaceXSContentTypeFunction<String>
-
empty
public String empty(XSContentType empty)
- Specified by:
emptyin interfaceXSContentTypeFunction<String>
-
wildcard
public String wildcard(XSWildcard wc)
- Specified by:
wildcardin interfaceXSTermFunction<String>
-
modelGroupDecl
public String modelGroupDecl(XSModelGroupDecl decl)
- Specified by:
modelGroupDeclin interfaceXSTermFunction<String>
-
modelGroup
public String modelGroup(XSModelGroup group)
- Specified by:
modelGroupin interfaceXSTermFunction<String>
-
elementDecl
public String elementDecl(XSElementDecl decl)
- Specified by:
elementDeclin interfaceXSTermFunction<String>
-
notation
public String notation(XSNotation n)
- Specified by:
notationin interfaceXSFunction<String>
-
identityConstraint
public String identityConstraint(XSIdentityConstraint decl)
- Specified by:
identityConstraintin interfaceXSFunction<String>
-
xpath
public String xpath(XSXPath xpath)
- Specified by:
xpathin interfaceXSFunction<String>
-
-