org.foray.fotree.xml.prop
Class Lang

java.lang.Object
  extended by org.foray.fotree.Property
      extended by org.foray.fotree.xml.AbstractXmlProperty
          extended by org.foray.fotree.xml.prop.Lang

public class Lang
extends AbstractXmlProperty

An xml:lang property.


Field Summary
 
Fields inherited from class org.foray.fotree.Property
PRECEDENCE_FORCE
 
Constructor Summary
Lang(FObj fobj, String propertyFullName, String attributeValue)
          Constructor.
 
Method Summary
 PdCountry getCountry()
          Return the Country, if any, embedded in this property.
 PdLanguage getLanguage()
          Return the Language, if any, embedded in this property.
 XmlProperty getPropertyType()
          Returns the type of this property.
protected  FoValue[] getValidKeywords()
          Returns the valid keywords for this property.
 PropertyValue value()
          Returns the value for this property.
 
Methods inherited from class org.foray.fotree.xml.AbstractXmlProperty
checkKeywords, standardParse
 
Methods inherited from class org.foray.fotree.Property
convertNumericToInteger, convertValueToLength, getBasePropertyName, getKeywordIndex, getKeywordInSet, getSubPropertyName, invalidPropertyName, keywordInSet, unexpectedInitialValueArgument, unexpectedRetrieval, unexpectedValue, unexpectedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lang

public Lang(FObj fobj,
            String propertyFullName,
            String attributeValue)
     throws PropertyException
Constructor.

Parameters:
fobj - The FObj to which this property belongs.
propertyFullName - The full name of this property.
attributeValue - The parsed property value.
Throws:
PropertyException - For an invalid property value.
Method Detail

getCountry

public PdCountry getCountry()
Return the Country, if any, embedded in this property.

Returns:
The country embedded in this property, or null if none is embedded.

getLanguage

public PdLanguage getLanguage()
Return the Language, if any, embedded in this property.

Returns:
The language embedded in this property, or null if none is embedded.

getValidKeywords

protected FoValue[] getValidKeywords()
Description copied from class: AbstractXmlProperty
Returns the valid keywords for this property.

Specified by:
getValidKeywords in class AbstractXmlProperty
Returns:
The valid keywords for this property.

value

public PropertyValue value()
Returns the value for this property.

Specified by:
value in class Property
Returns:
The value for this property.

getPropertyType

public XmlProperty getPropertyType()
Description copied from class: Property
Returns the type of this property.

Specified by:
getPropertyType in class AbstractXmlProperty
Returns:
The type of this property.


Copyright © 2017. All rights reserved.