|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.writer.relaxng.PatternWriter
public abstract class PatternWriter
Visits Expression and writes it as RELAX NG.
Field Summary | |
---|---|
protected Context |
context
|
protected XMLWriter |
writer
|
Constructor Summary | |
---|---|
PatternWriter(Context ctxt)
|
Method Summary | |
---|---|
protected boolean |
isPredefinedType(org.relaxng.datatype.Datatype x)
returns true if the specified type is a pre-defined XSD type without any facet. |
void |
onAnyString()
|
void |
onAttribute(AttributeExp exp)
|
void |
onChoice(ChoiceExp exp)
|
void |
onConcur(ConcurExp exp)
|
void |
onData(DataExp exp)
|
void |
onElement(ElementExp exp)
|
void |
onEpsilon()
|
void |
onInterleave(InterleaveExp exp)
|
void |
onList(ListExp exp)
|
void |
onMixed(MixedExp exp)
|
void |
onNullSet()
|
void |
onOneOrMore(OneOrMoreExp exp)
|
protected void |
onOptional(Expression exp)
|
abstract void |
onOther(OtherExp exp)
|
abstract void |
onRef(ReferenceExp exp)
|
void |
onSequence(SequenceExp exp)
|
void |
onValue(ValueExp exp)
|
protected void |
onZeroOrMore(OneOrMoreExp exp)
|
protected void |
param(String name,
String value)
|
protected void |
serializeDataType(XSDatatype dt)
serializes the given datatype. |
protected void |
serializeEnumeration(XSDatatypeImpl dt,
EnumerationFacet enums)
serializes a type with enumeration. |
protected void |
serializeListType(XSDatatypeImpl dt)
serializes a list type. |
protected void |
serializeUnionType(UnionType dt)
serializes a union type. |
void |
visitBinExp(String elementName,
BinaryExp exp,
Class<?> type)
|
void |
visitUnary(Expression exp)
print expression but surpress unnecessary sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final XMLWriter writer
protected final Context context
Constructor Detail |
---|
public PatternWriter(Context ctxt)
Method Detail |
---|
public abstract void onOther(OtherExp exp)
onOther
in interface ExpressionVisitorVoid
public abstract void onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitorVoid
public void onElement(ElementExp exp)
onElement
in interface ExpressionVisitorVoid
public void onEpsilon()
onEpsilon
in interface ExpressionVisitorVoid
public void onNullSet()
onNullSet
in interface ExpressionVisitorVoid
public void onAnyString()
onAnyString
in interface ExpressionVisitorVoid
public void onInterleave(InterleaveExp exp)
onInterleave
in interface ExpressionVisitorVoid
public void onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitorVoid
public void onList(ListExp exp)
onList
in interface ExpressionVisitorVoid
protected void onOptional(Expression exp)
public void onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitorVoid
public void onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitorVoid
public void visitBinExp(String elementName, BinaryExp exp, Class<?> type)
public void onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitorVoid
public void onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitorVoid
protected void onZeroOrMore(OneOrMoreExp exp)
public void onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitorVoid
public void visitUnary(Expression exp)
public void onValue(ValueExp exp)
onValue
in interface ExpressionVisitorVoid
public void onData(DataExp exp)
onData
in interface ExpressionVisitorVoid
protected void serializeDataType(XSDatatype dt)
protected void param(String name, String value)
protected boolean isPredefinedType(org.relaxng.datatype.Datatype x)
protected void serializeUnionType(UnionType dt)
protected void serializeListType(XSDatatypeImpl dt)
protected void serializeEnumeration(XSDatatypeImpl dt, EnumerationFacet enums)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |