org.pslx.PpsDocuments
クラス Constraint

java.lang.Object
  上位を拡張 org.pslx.PpsDocuments.Constraint
すべての実装されたインタフェース:
DomainElement

public final class Constraint
extends java.lang.Object
implements DomainElement

制約要素 クラス

バージョン:
1.6.004

入れ子のクラスの概要
static class Constraint.ConstraintTypes
          Constraintで使用する選択条件
 
コンストラクタの概要
Constraint()
           
Constraint(java.lang.Object value, Property.DataTypes dataType, Constraint.ConstraintTypes constraintTypes)
          制約データを生成します
Constraint(Property property, Property.DataTypes dataType, java.lang.Object value, Constraint.ConstraintTypes type)
          制約データを生成します
 
メソッドの概要
static java.lang.String constraintTypeString(Constraint.ConstraintTypes value)
          ConstraintTypes型の値を文字列に変換します
 Constraint.ConstraintTypes getConstraintType()
          制約の種類を取得します
 Property.DataTypes getDataType()
          制約値のデータ属性を取得します
 Property getProperty()
          もととなるプロパティを取得します
 java.lang.String getPropertyName()
          プロパティの名称を取得します
 java.lang.Object getValue()
          制約の値を取得します
static Constraint.ConstraintTypes parseConstraintType(java.lang.String value)
          文字列からConstraintTypes型の値に変換します
 boolean read(javax.xml.stream.XMLStreamReader reader, DocumentManager manager)
           
 void setConstraintType(Constraint.ConstraintTypes constraintType)
          制約の種類を設定します
 void setValue(java.lang.Object value)
          制約の値を設定します
 void write(javax.xml.stream.XMLStreamWriter writer, DocumentManager manager, int depth)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Constraint

public Constraint(java.lang.Object value,
                  Property.DataTypes dataType,
                  Constraint.ConstraintTypes constraintTypes)
制約データを生成します

パラメータ:
value - 値
dataType - データ型
constraintTypes - 制約の種類

Constraint

public Constraint(Property property,
                  Property.DataTypes dataType,
                  java.lang.Object value,
                  Constraint.ConstraintTypes type)
制約データを生成します

パラメータ:
property - 格納するプロパティ
value - 値
type - 制約の種類

Constraint

public Constraint()
メソッドの詳細

getPropertyName

public java.lang.String getPropertyName()
プロパティの名称を取得します

戻り値:
プロパティの名称

getDataType

public Property.DataTypes getDataType()
制約値のデータ属性を取得します

戻り値:
DataTypes

getValue

public java.lang.Object getValue()
制約の値を取得します

戻り値:
制約

setValue

public void setValue(java.lang.Object value)
制約の値を設定します

パラメータ:
value -

getConstraintType

public Constraint.ConstraintTypes getConstraintType()
制約の種類を取得します

戻り値:
ConstraintTypes

setConstraintType

public void setConstraintType(Constraint.ConstraintTypes constraintType)
制約の種類を設定します

パラメータ:
constraintType - 制約の種類

getProperty

public Property getProperty()
もととなるプロパティを取得します

戻り値:
Property

write

public void write(javax.xml.stream.XMLStreamWriter writer,
                  DocumentManager manager,
                  int depth)
           throws javax.xml.stream.XMLStreamException
例外:
javax.xml.stream.XMLStreamException

read

public boolean read(javax.xml.stream.XMLStreamReader reader,
                    DocumentManager manager)
             throws javax.xml.stream.XMLStreamException
例外:
javax.xml.stream.XMLStreamException

constraintTypeString

public static java.lang.String constraintTypeString(Constraint.ConstraintTypes value)
ConstraintTypes型の値を文字列に変換します


parseConstraintType

public static Constraint.ConstraintTypes parseConstraintType(java.lang.String value)
文字列からConstraintTypes型の値に変換します