Class Rule
- java.lang.Object
-
- network.oxalis.peppol.schematron.jaxb.Rule
-
public class Rule extends Object
Java class for anonymous complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded" minOccurs="0"> <group ref="{http://purl.oclc.org/dsdl/schematron}foreign"/> <element ref="{http://purl.oclc.org/dsdl/schematron}include"/> <element ref="{http://purl.oclc.org/dsdl/schematron}let"/> <element ref="{http://purl.oclc.org/dsdl/schematron}assert"/> <element ref="{http://purl.oclc.org/dsdl/schematron}report"/> <element name="extends"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attGroup ref="{http://purl.oclc.org/dsdl/schematron}foreign-empty"/> <attribute name="rule" use="required" type="{http://www.w3.org/2001/XMLSchema}IDREF" /> </restriction> </complexContent> </complexType> </element> </choice> <attGroup ref="{http://purl.oclc.org/dsdl/schematron}linkable"/> <attGroup ref="{http://purl.oclc.org/dsdl/schematron}foreign"/> <attGroup ref="{http://purl.oclc.org/dsdl/schematron}rich"/> <attribute name="flag" type="{http://purl.oclc.org/dsdl/schematron}flagValue" /> <attribute name="abstract" default="false"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="true"/> <enumeration value="false"/> </restriction> </simpleType> </attribute> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="context" type="{http://purl.oclc.org/dsdl/schematron}pathValue" /> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRule.ExtendsJava class for anonymous complex type
-
Field Summary
Fields Modifier and Type Field Description protected String_abstractWhen the rule element has the attribute abstract with a value true, then the rule is an abstract rule.protected List<Object>anyOrAnyOrIncludeprotected StringcontextThe context attribute specifies the rule context expression.protected StringflagThe flag attribute allows more detailed outcomes.protected StringfpiA formal public identifier for the schema, phase or other element.protected StringiconThe location of a graphics file containing some visible representation of the severity, significance or other grouping of the associated element.protected StringidThe unique identifier with the schema for the rule element.protected StringlangAttempting to install the relevant ISO 2- and 3-letter codes as the enumerated possible values is probably never going to be a realistic possibility.protected StringroleA name describing the function of the assertion or context node in the pattern.protected StringseeThe URI of external information of interest to maintainers and users of the schema.protected Stringspaceprotected StringsubjectA path allowing more precise specification of nodes.
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbstract()When the rule element has the attribute abstract with a value true, then the rule is an abstract rule.List<Object>getAnyOrAnyOrInclude()Gets the value of the anyOrAnyOrInclude property.StringgetContext()The context attribute specifies the rule context expression.StringgetFlag()The flag attribute allows more detailed outcomes.StringgetFpi()A formal public identifier for the schema, phase or other element.StringgetIcon()The location of a graphics file containing some visible representation of the severity, significance or other grouping of the associated element.StringgetId()The unique identifier with the schema for the rule element.StringgetLang()Attempting to install the relevant ISO 2- and 3-letter codes as the enumerated possible values is probably never going to be a realistic possibility.Map<QName,String>getOtherAttributes()Gets a map that contains attributes that aren't bound to any typed property on this class.StringgetRole()A name describing the function of the assertion or context node in the pattern.StringgetSee()The URI of external information of interest to maintainers and users of the schema.StringgetSpace()Gets the value of the space property.StringgetSubject()A path allowing more precise specification of nodes.voidsetAbstract(String value)Sets the value of the abstract property.voidsetContext(String value)Sets the value of the context property.voidsetFlag(String value)Sets the value of the flag property.voidsetFpi(String value)Sets the value of the fpi property.voidsetIcon(String value)Sets the value of the icon property.voidsetId(String value)Sets the value of the id property.voidsetLang(String value)Sets the value of the lang property.voidsetRole(String value)Sets the value of the role property.voidsetSee(String value)Sets the value of the see property.voidsetSpace(String value)Sets the value of the space property.voidsetSubject(String value)Sets the value of the subject property.
-
-
-
Field Detail
-
flag
protected String flag
The flag attribute allows more detailed outcomes.
-
_abstract
protected String _abstract
When the rule element has the attribute abstract with a value true, then the rule is an abstract rule.
-
id
protected String id
The unique identifier with the schema for the rule element.
-
context
protected String context
The context attribute specifies the rule context expression.
-
role
protected String role
A name describing the function of the assertion or context node in the pattern. If the assertion has a subject attribute, then the role labels the arc between the context node and any nodes which match the path expression given by the subject attribute.
-
subject
protected String subject
A path allowing more precise specification of nodes. The path expression is evaluated in the context of the context node of the current rule. If no subject attribute is specified, the current subject node may be used.
-
icon
protected String icon
The location of a graphics file containing some visible representation of the severity, significance or other grouping of the associated element.
-
see
protected String see
The URI of external information of interest to maintainers and users of the schema.
-
fpi
protected String fpi
A formal public identifier for the schema, phase or other element.
-
lang
protected String lang
Attempting to install the relevant ISO 2- and 3-letter codes as the enumerated possible values is probably never going to be a realistic possibility. See RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry at http://www.iana.org/assignments/lang-tag-apps.htm for further information. The union allows for the 'un-declaration' of xml:lang with the empty string.
-
space
protected String space
-
-
Method Detail
-
getAnyOrAnyOrInclude
public List<Object> getAnyOrAnyOrInclude()
Gets the value of the anyOrAnyOrInclude property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the anyOrAnyOrInclude property.For example, to add a new item, do as follows:
getAnyOrAnyOrInclude().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement<AssertReportType>JAXBElement<AssertReportType>JAXBElement<Rule.Extends>IncludeLetElement- Returns:
- The value of the anyOrAnyOrInclude property.
-
getFlag
public String getFlag()
The flag attribute allows more detailed outcomes.- Returns:
- possible object is
String
-
setFlag
public void setFlag(String value)
Sets the value of the flag property.
-
getAbstract
public String getAbstract()
When the rule element has the attribute abstract with a value true, then the rule is an abstract rule.- Returns:
- possible object is
String
-
setAbstract
public void setAbstract(String value)
Sets the value of the abstract property.- Parameters:
value- allowed object isString- See Also:
getAbstract()
-
getId
public String getId()
The unique identifier with the schema for the rule element.- Returns:
- possible object is
String
-
setId
public void setId(String value)
Sets the value of the id property.
-
getContext
public String getContext()
The context attribute specifies the rule context expression.- Returns:
- possible object is
String
-
setContext
public void setContext(String value)
Sets the value of the context property.- Parameters:
value- allowed object isString- See Also:
getContext()
-
getRole
public String getRole()
A name describing the function of the assertion or context node in the pattern. If the assertion has a subject attribute, then the role labels the arc between the context node and any nodes which match the path expression given by the subject attribute.- Returns:
- possible object is
String
-
setRole
public void setRole(String value)
Sets the value of the role property.
-
getSubject
public String getSubject()
A path allowing more precise specification of nodes. The path expression is evaluated in the context of the context node of the current rule. If no subject attribute is specified, the current subject node may be used.- Returns:
- possible object is
String
-
setSubject
public void setSubject(String value)
Sets the value of the subject property.- Parameters:
value- allowed object isString- See Also:
getSubject()
-
getIcon
public String getIcon()
The location of a graphics file containing some visible representation of the severity, significance or other grouping of the associated element.- Returns:
- possible object is
String
-
setIcon
public void setIcon(String value)
Sets the value of the icon property.
-
getSee
public String getSee()
The URI of external information of interest to maintainers and users of the schema.- Returns:
- possible object is
String
-
setSee
public void setSee(String value)
Sets the value of the see property.
-
getFpi
public String getFpi()
A formal public identifier for the schema, phase or other element.- Returns:
- possible object is
String
-
setFpi
public void setFpi(String value)
Sets the value of the fpi property.
-
getLang
public String getLang()
Attempting to install the relevant ISO 2- and 3-letter codes as the enumerated possible values is probably never going to be a realistic possibility. See RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry at http://www.iana.org/assignments/lang-tag-apps.htm for further information. The union allows for the 'un-declaration' of xml:lang with the empty string.- Returns:
- possible object is
String
-
setLang
public void setLang(String value)
Sets the value of the lang property.
-
getSpace
public String getSpace()
Gets the value of the space property.- Returns:
- possible object is
String
-
setSpace
public void setSpace(String value)
Sets the value of the space property.- Parameters:
value- allowed object isString
-
getOtherAttributes
public Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- Returns:
- always non-null
-
-