|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.xsdutil.xsd.XSDConcreteComponentWrapper
public class XSDConcreteComponentWrapper
This class wraps XSDConcreteComponent. It provides a way for users to reliably retrieve the unique tag name (prefix + local name) for any given XSDConcreteComponent when the XSDSchemaSet is not available, or not required.
Constructor Summary | |
---|---|
XSDConcreteComponentWrapper(org.eclipse.xsd.XSDConcreteComponent component,
java.lang.String prefix)
Creates a new instance of this class. |
Method Summary | |
---|---|
void |
appendToParentList(XSDConcreteComponentWrapper c)
|
org.eclipse.xsd.XSDComponent |
getComponent()
Returns the component that has been wrapped |
static java.lang.String |
getDisplayTypeFromType(java.lang.String type)
Converts the XSD Type to a user readable name (e.g. |
java.lang.String |
getKey()
|
java.lang.String |
getName()
|
java.util.List<XSDConcreteComponentWrapper> |
getParentList()
|
java.lang.String |
getType()
Returns the schema type of the wrapped component |
boolean |
hasRestrictionOrExtension()
Returns true if the given component has an extension or restriction defined |
void |
setType(java.lang.String type)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSDConcreteComponentWrapper(org.eclipse.xsd.XSDConcreteComponent component, java.lang.String prefix)
component
- XSDConcreteComponent The component that we wish to wrap.prefix
- the prefix for the component that we are going to wrapMethod Detail |
---|
public java.lang.String getName()
public org.eclipse.xsd.XSDComponent getComponent()
public java.lang.String getType()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getDisplayTypeFromType(java.lang.String type)
type
- the name of the type we wish to see in user friendly format
public void setType(java.lang.String type)
public java.lang.String getKey()
public void appendToParentList(XSDConcreteComponentWrapper c)
public java.util.List<XSDConcreteComponentWrapper> getParentList()
public boolean hasRestrictionOrExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |